Add line numbers to token output