Fix expected number of slaves per node calculation.