The story
The origin of this phrase goes back to the American Revolutionary War where a book containing numbered positions for rifle and bayonet practice was used to train soldiers. In the book, each diagram was numbered.
Etymology from Wiktionary, CC BY-SA 4.0.