itertools.count (start = 0, step = 1)
-> iterator
start = 0 - The number from which to start counting.
+ py2.7, + py3.1 step = 0 - The number by which the element is spaced from each other.
The function will create an infinite iterator .
from itertools import count
counter = count ()
next (counter) # 0
next (counter) # 1
next (counter) # 2
counter = count (15, 3)
next (counter) # 15
next (counter) # 18
next (counter) # 21