When you have a short timeline frame numbers start showing up between the Seconds display. That is what is happening in the second screenshot. If you zoom way in on the Timeline, or the comp is really short, you will see individual frames.
The bottom screenshot looks like you have the comp set to frames. You can change this by Ctrl/Cmnd clicking on the time/frames display in the Timeline panel.