What's the simplest way to count FPS when writing game using QtOpenGL module (QGLWidget)?

Is there any special function for this?

Thanks in advance!