Summary: Learn to use Windows PowerShell to count the number of photographs you have on your computer.
How can I use Windows PowerShell to count all the photographs I have on a specific drive?
Use the Get-ChildItem cmdlet to find all of the photos, and then pipe the results to the
Measure-Object cmdlet. The following command counts the number of .jpg and .crc files on drive E:
Get-ChildItem -Recurse -Include *.jpg, *.cr2 -Path e:\ | Measure-Object