Improved counter's performance