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
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