To count all files in a directory in linux, simply cd to that directory and then run the following command:
ls | wc -l Alternatively, you can select the directory by adding the directory to the command like so:
ls /var/css | wc -l
/var/css is the directory you want to count the files in.
To do the same thing on windows, use
cd to move to the directory in question, and then run the following on command line:
This will list all files and directories in a folder, and tell you how many files and directories exist.