Outputs the current frame (as a number).