find the total of files in the directory

There is a command in linux console to count total files in the directory. ls | wc -l The result will show a number. Actually the wc command is to print newline, word, and byte counts for each file. Here are the option for wc command -c,…