Simplify line counting
Merge pull request #93 from knservis/Line_count_simplify

Simplify line counting