flines (<file>)
numeric
The number of lines in a text file, or zero if the file doesn’t exist. Lines terminated by a backslash are not included in the count.
<file>The name of the file to be queried.
numeric nrows = flines(/usr/test/myfile.dat)