Given a string string, what is the fastest/most-efficient way to count lines therein? Will accept best answers for any flavour of Rebol. I\'ve been working unde
string
Enhanced PARSE version, as suggested by BrianH:
i: 1 ; add one as TextMate parse text [any [thru newline (++ i)]] print i