Calculating Genotype Frequencies