Whyte notation
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 following a December 1900 editorial in "American Engineer and Railroad Journal". The notation 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.
Whyte notation
Simpler articulated types such as Mallets, have a jointed frame under a common boiler where there are no unpowered wheels between the sets of powered wheels. Typically, the forward frame is free to swing, whereas the rear frame is rigid with the boiler. Thus a Union Pacific Big Boy is a 4-8-8-4; four leading wheels, one group of eight driving wheels, another group of eight driving wheels, and then four trailing wheels.