Count number of groups for each user