The number of gametes produced by any organism can be calculated from the genotype of the same. Gametes are always haploid and pure. This implies that one of the two chromosomes of a diploid cell will pass on to the gametes.
For example: IfthegenotypeisAA,numberofgametesmaybemany,buttypeofgameteswitllbeAonly.IfthegenotypeisAa,typesofgameetswillbeAora.
Thus, the number of heterozygous loci decides the number of gametes formed. SincethisorganismhasAABbCCgenotype,andisheterozygouslocusisonly1,therewillbetwogametes:ABCandAbC