determine_nlines function

Determine number of lines in a text file