adding file_count to School model and functions to update it