Is there a next frame?

hey…
Just wondering if theres a quick way to check if theres another frame on the main timeline after the one you are currently on…
or just a command to tell me how many frames total in movie(and if therres a command for # of current frame, or ill just have to make a counter), rest i can do myself =)