Go on then, I'll bite:
What SHOULD I have suggested to bsher to find the "total files in a directory"? ls -la shows all files, (plus . & .. & the total blocks line), so ls -la |grep "^-" |wc -l counts the ordinary files.
Or am I still missing something?