Count Method
Returns the total number of objects in a collection of Web Part properties.
collection.Count()
collection A reference to the Properties collection.
Remarks
Use the Count method to return a value indicating the number of items that are in a Web Part properties collection. If the Count method is 0 (zero), there are no objects in the collection.
Example
Microsoft Visual Basic Scripting Edition:
intPartsCount = WPSC.WebPartPage.Properties.Count()
Microsoft JScript:
var intPartsCount = WPSC.WebPartPage.Properties.Count();
Requirements
Platforms: Microsoft Windows Server 2003
Applies to: Properties Collection