Count Property
The Count property of the SPGroupCollection class gets the number of cross-site groups in the collection.
Property Value
A 32-bit integer that indicates the number of groups.
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security