Getting the counts of values