Shell Script to Display Number of Files and Directories in a Directory code example
Example: shell show number of files in each folder
du -a | cut -d/ -f2 | sort | uniq -c | sort -nr
du -a | cut -d/ -f2 | sort | uniq -c | sort -nr