Question : How do you count the number of folders in an Exchange 2007 mailbox?

Hello,
I'm trying to find a way through Powershell to count the number of folders in a Exchange 2007 mailbox.  I've only been able to find a script to count the number of items within a folder, but not the actual number of folders.  Does anybody know of a way to do this?

thanks!

Answer : How do you count the number of folders in an Exchange 2007 mailbox?

[PS] C:\>$objFolder = Get-MailboxFolderStatistics | fl FolderPath
[PS] C:\>$objFolder.count
Random Solutions  
 
programming4us programming4us