|The Message text:
This email was created by [your name] who thought you would be interested in the following Article:
"Counting lines in a string"
I had to do something like this in XSLT. If the string is not too long (for some definition of "too long"), you can replace all newlines with "" and then take the difference in the two string lengths.
CodeProject also contains hundreds of articles, free source code samples and applications to help in your day to day programming. Why not give it a try!