http://www.perlmonks.org?node_id=946596


in reply to Re^6: fast count files
in thread fast count files

After checking over on Server Fault, one recommendation for directory size (which includes file count) is the SysInternals version of du. You could use this, and if you need the information in Perl, then you can use backticks and collect the information for further usage