Improved counter