Total item count in mailboxes based on MessageClass script

I want to be able to get a total item count , of messages that match a specifc MessageClass in Exchange 2007 mailboxes (actually want to run this against the org/all Storage Groups)

Can't seem to figure out how to do it with powershell
Who is Participating?
TarasShumyloConnect With a Mentor Commented:
All Courses

From novice to tech pro — start learning today.