[a typo corrected..Thanks 2 itmozart 4 pointing it out]
To get the number of files in a directory including sub directories on Linux
Run ls -1R [shift + \] wc –l
[root@HACK1 root]# ls -1R [shift + \] wc -l
Thanks to my friend shiva for providing this.