Hello, everyone!
I apologize if this question has already been asked.
I have a set of files and need transform to custom counting (below)
40361_536.png -> 40361_1
40361_538.png -> 40361_2
40361_536.png -> 40361_3
40362_537.png -> 40362_1
40363_534.png -> 40363_1
40363_535.png -> 40363_2
40363_532.png -> 40363_3
40363_533.png -> 40363_4
Files with the first five identical numbers must be counted and ordered