freqMean function

freqMean calculates the mean and stdev of count data