counting the number of lines in a file.