Add sequence number to selected lines.