Get-Mailbox –Server “servername" | Get-MailboxFolderStatistics | Where {$_.ItemsInFolder -gt 20000} | Sort-Object -Property ItemsInFolder -Descending | fl Identity, ItemsInFolder > c:\itemcount20000.txt
command used for please update.
where i run this command hubcas or mail box. and other.