Recursively count all the files in a directory