count_files function

Count files in a project directory