ls | wc -l #Count files on current directory ls path/to/dir | wc -l #Count files on specific directory path
#count files in a directory faster with: ls -f | wc -l