compute number of genes in an allele dynamically
make computation of rate of coalescence slightly more efficient