Checking number of available groups