Removed unused counter code.