refactoring and renaming Utilities#get_number_of_files