Yeah, don't use my hacked code of only 3 lines or so, instead use code that turns into a full page on the screen
You must have a very small screen if a 14 lines function (my code, above) occupies a full-page on it
You've got to relax a little, Jamie: not everybody is out to get you, you know. The point of my code vs. your sugestion is not that your approach is inherently wrong (though see next paragraph) but that using a TStringList just for the sake of counting how many "lines" there are in a string is a little overkill (IMHO, of course).
There is also the small detail that
Count will always be off-by-one (except for an empty string): remember, the OP wanted to count line-ends, not lines
per se, so he would have to take this into account.
Though, of course, I might be completely wrong in everything...
errare humanum est