Count members of groups