Function TextRange.lines

returns count of lines in range

int lines() @property const;