SPFolder.ItemCount Property
SharePoint 2010
Gets the number of direct children, including subfolders, in this folder.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Property Value
Type: System.Int32Returns an Int32 representing the number of items contained in this folder.