$LineNumber
The line number (int) of the current command in the currently executing program. It cannot be reset by an application program.
For commands that are continued over more than one line, $LineNumber refers to the last line of the command.