count_lines function

count lines (of an ASCII file)