Is it possible that the film slipped off of the takeup spool in the camera?
The camera's frame counter doesn't care if the actual film advances or not.
When rewinding the film after shooting a full roll, it should take a dozen or so turns of the rewind knob before you hear the film disengage from the takeup spool.
I'd suggest loading a junk 'test' roll in the camera, taking up the slack, and watching the rewind knob move when advancing the film....no rotation of the rewind knob = no film advance.
I once had a roll of 35mm film break shortly after the leader...I ended up taking 36 exposures on one frame of film.
It only took one turn of the rewind knob to hear the film go back into the cassette.
If I had paid attention to the rewind knob when loading or photographing, I could have done something about it.