Counts number of files with .JPG extension in directory and subfolders (recursive).
find . -name \*.JPG -not -path \*/\.\* | wc -l
Counts number of files with .JPG extension in directory and subfolders (recursive).
find . -name \*.JPG -not -path \*/\.\* | wc -l