Assign a custom numbering to begin repeat

Got the solution for not repeating select one in a repeat group from here.
https://forum.getodk.org/t/duplicate-value-in-repeat-group-question/11281/3?u=coderscoven

Also tried the position() and it also works so will use it. Thanks @noel_cartong