CountLines( Name )
The number of lines in the specified Text object or variable.
Name – set the name of object in which you want to count the lines. Name can either be the name of a Text object or of a variable name. The name must NOT be surrounded by quote marks. This parameter is required.
This function will return the number of lines in the specified Text object or named variable.