A generic base arithmetic and logical counter, based on Qt.