A Hudson was a steam locomotive with a 4-6-4 wheel arrangement, meaning four idler wheels (2 axles) at the front, 6 driving wheels (3 axles), and 4 trailing wheels (again, 2 axles).
A Niagara was a 4-8-4 locomotive, similar to the Hudson but with 2 more driving wheels (1 more driving axle)...