Update line-count.py

If these are supposed to be idiomatic in each language, this is more sensible than explicit looping with a counter.
Merge pull request #1 from johntyree/patch-1

Update line-count.py