Multiline String, Get Number of Lines

Gets the number of lines of text. The number of lines that do not count the trailing newline codes can also be stored.