code: def index(self, elem):
          
          if elem not in self:
              raise _coconut.ValueError(_coconut.repr(elem) + " is not in count")
          return (elem - self._start) // self._step
docs: Find the index of elem in the count.