human
Write me a Python code to get index in iterator.
assistant
Here is a Python code to get index in iterator

import itertools

def get_index(iterator):
    """
    >>> iterator = [1, 2, 3, 4, 5]
    >>> 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.