Summary: Learn how to use Windows PowerShell to count images.
How can I use Windows PowerShell to count images on a drive?
Use the Get-ChildItem cmdlet, specify the path, and send the results to the Measure-Object cmdlet,
for example:
dir -Recurse -ea 0 -File -path e:\data -include "*.gif","*.jpg", "*.png", "*.bmp" | measure
Note Dir is an alias for Get-ChildItem and Measure is an alias for Measure-Object.