Gets the line number (starting from 0) for the last line that is user visible.
a line number starting from 0