alleleFreq function

Calculates the count of each allele in the provided vector.