fixed typos related to counter