Phone on a stand or against the wall in portrait, you side-on to it, 2–3 m away.
Seated: lift the leg nearest the camera; turn around for the other leg.
Analyze a clip of a set (for checking)
A video of a whole set, filmed side-on while the drill counted. The settings above say which set it is; the reps are matched to the clip automatically.