refactor: make ErrorsCounter non static