Replace `count_lines` with faster implementation
Merge pull request #146 from eviltrout/count_lines

Replace `count_lines` with faster implementation