Directory File Count from Command Line

To quickly get a count of the number of files in a directory:
ls -1 targetdir | wc -l

Matt Tew