Count files in a directory recursively