Worst way and most elegant ways to count lines of a file.