moved the calculation of mutation count into crossover method