utility function

Get number of groups/profiles