Implemented renaming of counter function