$Lineis a global variable that specifies the number of the current input line.
The value of $Line corresponds to the numbers in In and Out:
It is incremented for every line of input:
You can reset it:
In Out $HistoryLength
400+ new features, including the new Wolfram Predictive Interface, social network analysis, enterprise CDF deployment, and more »