The term line means a line on the display after the application of word-wrap. It does not mean a line as defined by the CR LF line-break sequence.
The multi-line edit control always maintains one CR LF line-break in the buffer, therefore the number of lines returned may be one greater than the number actually visible.