To find number of files in a directory use the following command:

ls | wc -l

Advertisements