Count files in a folder recursively
find . -type f | wc -lTo count the number of files and folders in the current folder and in all of its subfolders (recursively):
find . | wc -lfind . -type f | wc -lTo count the number of files and folders in the current folder and in all of its subfolders (recursively):
find . | wc -l