A standard frame is 24 × 36 mm. Rolls come with 24 or 36 exposures (some with 27 or 12). After the last frame the camera, or you, rewinds the film back into the cassette before opening the back.
Half-frame cameras such as the Olympus Pen or Pentax 17 use 18 × 24 mm, which doubles the number of shots per roll. Panorama modes on some point-and-shoots mask the frame to a wide strip.
Most 35mm cassettes carry a DX code that tells automatic cameras the film speed.