Provides a function count_lines to count the number of lines in a file. The speed is comparable to GNU wc.
count_lines