How can I check the number of line feeds in a string?
<p>I have a field that I use to hold text. I am going to hold the text in a HTML textarea but I need to set the number of lines. </p>

<p>How can I count the number of line feeds in a string so I can set the textarea rows?</p>
