Count Object

This method will count the number of items that match the object type name for a folder and, if selected, child folders.

Get Object Counts Async

Example in C#

// Returns: Int64
var item = await client.GetObjectCountsAsync(FolderInfo folder, String typeName, Boolean includeChildFolders)