Loading text files and counting lines

Read in a text file and count the number of lines.