count function

Count the observations in each group