If a population has 6 homozygous dominant individuals, 16 heterozygous individuals and 10 homozygous recessive individuals with regard to a certain gene, then how many dominant alleles are in the population?