Obtains the number of lines in the buffer.
This value is cached, so the function is very fast.
a TextBuffer
number of lines in the buffer