Today, I needed a quick count of all of the files in Magento in order to set the “apc.num_files hint=xxx” in APC. Since all of the source files were on my Windows machine already, I started with Powershell.
Powershell (Windows)
After that, for accuracy sake, I checked on the server as well.
Linux Shell (Ran from inside the directory)