HEX counter