Create a numbering sequence for key repeated values in a List

A screenhot clearly indicating the initial and expected lists could be useful. You can check first what’s already available on this topic and start to experiment from that, see for example: