How to get current frame?

Is there a way to grab the current frame number?