This tutorial will guide you how to count the files in a directory recursively.
Firstly go to the directory that you are going to count.
In order to count all the files in a directory recursively you need to execute the following command:
TheDude@TheBox: folder # find . -type f | wc -l
find [period] [dash]type f [pipe] wc [dash][el]
If you copy/paste this line into a linux command prompt, make sure the pipe symbol is a solid vertical line (not the broken vertical line).