While Loop or similar

I had this problem:

ID Expected numbering|
123 |1|
123 |2|
123 |3|
123 |4|
123 |5|
123 |6|
456 |1|
456 |2|
456 |3|
789 |1|
789 |2|
789 |3|
789 |4|
789 |5|
I need assign an incremental number for every change in ID, how can i do this?

Welcome to the forum @NSDLPR.

For this, I’d use a Group Loop with a Counter Generation node:
image

image