Population genetics

At a locus, allele D is dominant over d in determining a visible trait. Which fact is relevant when calculating the frequency of d from genotype data?