I think this is what you want.
The problem with the way you were trying to decrement is you were attempting to modify a “get reference”. The Get reference isn’t a defined variable.
The return index value increments with each loop … 1,2,3 etc. Use that value for count conditionals … Index == current iteration int.
The above will spawn the first 3 as type 0 and all remainders as type 1.