i present you a steam loc from my region, she’s class on historical monuments :
some technic :
-national company (SNCF)
-construction year : 1922
-compound 2500 hp
-104 tons, 130 km/h (80 mph)
in France, steam locs were numeroted like that : 231 = wheel arrangement (2 carrying wheels, 3 motor wheels, 1 carrying wheel) / G = construction year / 558 = number in the serie
this picture shows the loc in a hall that is the “Buddicom” factory where first steam locs of the “compagnie de l’ouest” were built and repaired on 1841 at Sotteville les Rouen, on the line PARIS-ROUEN-LE HAVRE.
In the UK they generally use five-digit numbers where the first two indicate the “class” or type of engine and the last three are the engine’s individual numbers.
For example an English, Welsh and Scottish 60-class diesel EWS 60016: