the script does this:
make 100 GameObjects tagged "foe";
destroy the first 10 GameObjects from the 100
find all the GameObjects marked "foe";, rename them all foe-1 to foe-90
the foes are named from number 10 to number 100, but foe numbers 0-9 are missing? i destroyed first 10 GameObjects before searching for them and labelling them!
why does it count through the tags of GameObjects that were destroyed? how long do the tags still exist for after they are destroyed, just a couple of frames?