Just saw that there already is a counter that can be used in that class.