How to display the current frame number as part of the open GL render?
Enable the Metadata stamping in the render output properties. It also works for OpenGL renders.



Here is a 720p output example of what it looks like with a bigger font and the default options enabled:



Here's how to find the option in Cycles Render (first image) and in Blender Render/"Internal" (second image):