Calculating the number of girls