The Whyte notation for classifying steam locomotives by wheel arrangement was devised by Frederick Methvan Whyte and came into use in the early twentieth century encouraged by an editorial in American Engineer and Railroad Journal (December 1900). Whyte's system counts the number of leading wheels, then the number of driving wheels, and finally the number of trailing wheels, groups of numbers being separated by dashes. Other classification schemes, like UIC classification and the French, Turkish and Swiss systems for steam locomotives, count axles rather than wheels.
Thus, in the Whyte Notation a locomotive with two leading axles (and thus four wheels) in front, then three driving axles (six wheels) and then one trailing axle (two wheels) is classified as a 4-6-2.
Read more about Whyte Notation: Limitations, Naming