Rolling counter that ensures same-machine and same-time
        cuids don't collide.

def counter(self):
        """
        Rolling counter that ensures same-machine and same-time
        cuids don't collide.
        """
        self._counter += 1
        if self._counter >= DISCRETE_VALUES:
            self._counter = 0
        return self._counter