Gets the value of the framebuffers frame counter.
This is a counter that increases by one each time swap_buffers or swap_region is called.
the current frame counter value