Rename counter. Add javadoc.