There isn't an exact figure for you here. You want to leave the onions alone enough for them to have the chance to brown. However, you don't want them to become crispy or burned. I recommend waiting until you're seeing brown bits at the bottom of your pan, then stir well. Every few minutes should be fine, deglazing the pan when necessary. Towards the end of the process, it may be closer to every minute.