Textbox lines

If a texbox is drawn on stage. Is there a way of dynamically counting the lines that would fit into it (not characters)?

thanks