property Groups.Count as Long
Returns the number of objects in a collection.

TypeDescription
Long A Long expression that specifies the number of Group objects in the Groups collection. 
The Count property counts the number of Group objects in the Groups collection. The ItemByIndex/Count properties can be used to enumerate the Groups as they has been added.  The ItemByPos/Count properties can be used to enumerate the Groups as they are displayed. The Visible property specifies whether a Group is visible or hidden. The ItemByPos property gives the Group by position, no matter if it is visible or hidden. The Item property can be used to access a Group object giving its identifier. Use the Add method of the Groups collection to add new groups to the control. The Groups collection supports for each statement, so you can enumerate the groups using a code like for each g in Groups.