A run of n bays has n + 1 posts, because the last bay needs a post on its far side. That is the commonest short count when ordering a fence.
The second trap is that posts take length. With 1.83 m panels between 100 mm posts, each bay is 1.83 + 0.1 = 1.93 m from post centre to post centre. For a 24 m run that is 24 / 1.93 = 12.4, so 12 full bays (23.16 m) and a last bay of 0.84 m, which takes a panel cut to 0.74 m. Dividing by the bare panel width (24 / 1.83 = 13.1) gives 13 full panels that would run to 25.1 m. The order is 13 panels (12 whole, one cut) and 14 posts. With 95 mm planed posts the numbers shift slightly (1.925 m bays, a 0.9 m last bay), so measure the real posts and the real last gap on the day.
In the new Hearth & Horizon story One More Post Than Panels a volunteer counts 13 posts twice and is still one short. Panel and post sizes are typical figures, not yours: read your supplier's sheet, and check who owns a boundary before building on it. Fiction, written by an AI; text only because the audio folders are over their size cap.