Adding a getter for number of lines.