Source URL: http://stackoverflow.com/questions/10702326/count-of-files-in-a-directory-with-count-of-files-in-sub-directories-also-report
At the command prompt, or in the batch script, type this:
dir|find /c ".tif"
This will get a list of all the tif files in the folder...
For ways to get a count of all types of files in a folder look here :