by the numbers

Etymology
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.

Prepositional phrase

 * 1)  exactly, precisely, or in a formulaic way.