I couldn’t find a variable with that information BUT to achieve what you want, simply start with a Repeat statement with a type of Until no more elements, added with a Goto that moves down by 1 line, which position you at the end of the page.
Then another Repeat which type would match you requirement as far as condition, added with a Goto that moves -1 line.
However, the second method does not extract the line count value to a field stored in the datamodel, it simply stores it in a sourceRecord variable, which means you’ll have to add an extra Extraction step to store that line count value in a field if you need it stored in the database.
The first method both assigns the line count value to a sourceRecord property and extracts it to the database in one fell swoop, so it’s slightly more efficient.
Also note that if your record has multiple pages and you want to count the total number of lines in the record (i.e. across all pages), as stuart did, then your first Goto step should point to some impossibly large value (1000 pages in the following example):
And then, the second Goto should simply point to the top of the record instead of moving back a single page: