add ability to count the number of lines