User Mailbox Inbox and sent Items count


I have few mailboxes. I am looking powershell cmdlet\script to get count of user mailbox inbox and sent iteams count. I can genrate TotalItems count of the mailbox but not folder inbox and “Sent Items” counts.

Glen Scales is the “world’s premier expert” on Exchange programming in PowerShell. He posted a collection of snippets at!/2012/10/ews-snippets-for-powergui.html that might help.