Diesel and electric locomotives can work with a much lower factor of adhesion than a reciprocating steam locomotive because their power is applied smoothly, unlike the latter's pulsed power delivery.
The corollary of the above is that as a locomotive's available tractive effort increases, so must its weight for adequate adhesion. This explains why steam locomotive designers were never that interested in saving weight! Since a steam locomotive must have leading and trailing wheels for stability if it intends to travel at any speed, and these wheels must have some weight on them for good tracking, the steam locomotive's weight increases further.
As weight on the driving wheels increases, the number of driven axles must also increase; maximum axle load is limited by the railroad's civil engineer, since bridges and other structures are built to take only a certain loading. Thus, the tractive effort of a locomotive can be guessed well just by knowing the number of driven wheels and the maximum axle load it was designed for.