Added feature to count genes and alleles