Use enumerate instead of a manual counter
Merge pull request #4 from ekohl/enumerate

Use enumerate instead of a manual counter