for count, line in enumerate(f):
Enumeration starts at index 0, unless otherwise specified, provided that the counter is repeated at the same time as each element of the for loop
EDIT: as a side note, you can change where the enumeration starts with the second argument, for example. for count, line in enumerate(f, 11) will cause it to start at 11
source share