'uint' isn't a known type. Should use uint8_t for this counter which
only goes to 6.