Number of text lines?

Hi,

I’m loading a few bits of text into a dynamic textbox and I want to know if it’s possible to find out the number of lines its taking up. Using the height of the textbox isn’t an option as the text varies all the time.

Any ideas?