Added counter that was used already, but not declared.