Dynamic text: counting the number of lines

is it possible to count the number of lines in a dynamic textfield?

thanks
.dnd