Counting output lines better in html output.
Merge pull request #74 from rhyolight/log-lines

Counting output lines better in html output.