Increase variable after X number of steps

I'm trying to create a Common Event where a variable increases by 1 after taking an X number of steps. For example, every 5 steps will increase the variable by 1. Then after 25 steps, that variable will be 5. Thoughts on how to accomplish this?
you need to use control variable command to load the current step number into a variable and compare it to the previously stored (in a different variable) step number. If the difference is 5, store the current number and increase the counter by one.


I'll be a bit tricky because you need a parallel process with a good number of waits, and the best wait number can only be discovered by testing - too few waits and the game will lag, too many waits and there is the risk of skipping steps.
Someone else had asked for a variable to be counted every step and this worked for that, with a few minor changes could be for 5 steps as well:

Spoiler
Thanks for your help, everyone!

Original thread: https://forums.rpgmakerweb.com/threads/increase-variable-after-x-number-of-steps.69394/