fixed typo in counter