how to get the count of files in a folder using cmd code example
Example 1: How to count number of files in each directory
du -a | cut -d/ -f2 | sort | uniq -c | sort -nr
Example 2: terminal count files in directory
ls | wc -l or ls <path> | wc -l