Back to basics with this one, the linux wc command (word count) can be used to count lines, words and bytes in a file and
Counting files in a Folder at the Linux Command Line
This command combines ls (directory list) with wc (word count) command to count the number of files in a directory. I just used it to