Count files recursively in a directory

ls -1 | wc -l
find . -type f | wc -l