Counts correct number of lines now