Why do you want to limit the rows? If you added you text into a box and allowed auto scroll then you would get scrollbars when the text goes over the size that you want to have your text limited to. Just an idea!

Anyway, maybe you could allow a certain number of characters instead. Figure out how many characters fit in your text and limit it to that.