counter in intToHexString