Something like this? Directory Count Monitor
If I had more time I would've used WMI so it wouldn't require WinRM for remote execution, but this was fast and easy. If you're not in the mood to configure WinRM on your remote host however, this can be used as-is with the Orion Agent. If you'd prefer something that works agentlessly, this could be rewritten to use WMI via PowerShell with additional work and a little help from the folks in the Script Lab.
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 150,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process. Learn more today by joining now.