<human>:  Write me a Python code to get index in iterator.
<bot>:
  >>> get_index(iterator)
  0
  """
  return next(iterator)

# Enter the iterator
iterator = itertools.count()

# Calling the function
index = get_index(iterator)

# Print the index
print(index)

#Example Output
# 0

#Remember to inspect code for bugs.