Unfortunately no. You will have to build one yourself. The basic way to approach things is to pass the contents of the file into a while loop containing a match pattern primative. Have a shift register on the loop that carries the location of the last sting found and loop until the search string isn't found anymore. When the loop terminates the number of iterations will be equal to the number of lines.
The one tricky part is defining the search string. If you know what the EOL delmiter is for the program generating the file is--use it. Otherwise try the string [\r\n]+ (with slash codes enabled). This string will match any number of consecutive carriage returns or line feeds. The only problem with this generic solution is that it won't catch empty lines...
If you can't get something going give me a hollar and I'll put something together for you...
Mike
mporter@arielcorp.com