A counted number of things to initiate something happening

Hello.

Basically what I'd like to try and do here is that I have several interactable things on this map and I'd like for a certain thing to happen after having interacted with all of them. So basically having like an invisible counter for example saying "You have interacted with this 1 person out of these 4 others."

In my case there's several people and objects that the player needs to interact with in whatever order they like so that the quest is completed.

I've once done something similar to this, but I'm afraid it's been too long, and I wasn't entirely sure what should I search with to find other threads where I'm sure this has already been asked and answered before.

Thank you in advance.
In each of those events, count up a variable when the player interacts.
And display the stored number with a textcode in show text commands.
Just make sure that you have a second page to switch to after you've interacted with an event once (use a Self Switch or a Switch to do so), so that interacting with the same event several times will only count up your variable once.
You might find Celianna's playable tutorial on Switches and Variables helpful.
http://forums.rpgmakerweb.com/index.php?/topic/10099-variables-guide/
Thank you kindly for the replies. I did as both you, Andar and Wavelength said, as well as checked out the tutorial you linked, Kes, and tested it out in my own game and it worked just as I hoped, so everything is all good now. Thank you for the help (^v^)b

Original thread: https://forums.rpgmakerweb.com/threads/a-counted-number-of-things-to-initiate-something-happening.88465/