refactored the repo::read_files to make the method counter cleaner. moved into separate methods
class counter and method counter works. it was a regex error