s/numPartition/numPartitions/g

Should this be plural?  Singular implies this is the number of a single partition.