The current code tries to avoid duplicated names by adding a counter at the end of the name, but the count stops at 10.