Does anybody know how to grow or shrink a text box that is using word wrap?

Or alternatively, know how to get the number of lines in a wordraped text box (NOT textbox.lines, these are lines that are delimeted by a CR LF, wordwraps dont do this).

Thanks