How to run background workflow for X times

Use the recursive feature. I jotted down some learnings in the past on this thread: Schedule API workflow on a list - does the list have a limit? - #23 by rico.trevisan