class counter and method counter works. it was a regex error