counting polymorphic loci