Here is my multiline editbox
<xp:inputTextarea id="taID"></xp:inputTextarea>
I want to count number of rows entered by user on e.g. button click. Rows are separated with new line. Not sure if I can use any kind of array because edit box may contain up to 200K rows. What is the best way to count it with JavaScript?