Renumber sequentially restarting for each folder

You'll probably need a script to do that.

This one is very similar and should work as a starting point at least: Number Within Sub-Folders