From time to time it might be necessary to record the per-folder item counts on folders in either an end-user mailbox or Personal Archive. One of the ways to obtain this information is provided below:
Using the Exchange Management Shell the following commands can be issued to get the results from an Exchange Mailbox.
get-mailboxfolderstatistics daniel1 | select name, foldersize, itemsinfolder
Note: replace the first parameter (daniel1 in this example) with the name of the mailbox you wish to query.
In order to get the results from a Personal Archive run the following command:
get-mailboxfolderstatistics -archive daniel1 | select name, foldersize, itemsinfolder