Use .each.with_index(1) to get line_numbers