Magic Counting System

I'm fairly new to RPG Maker and game design in general, so excuse me if I don't make 100% sense right away. Basically, what I'm looking for is a way for the game to keep track of how many times a character uses a particular element of magic and, depending on that number of times, have options available to them. For instance, they cast a fire spell --> fire counter +1 --> skills that cost 1 fire counter become available --> uses a cost 1 fire counter skill --> fire counter -1 --> skills that cost 1 fire counter skill become unavailable. I've been trying to maybe utilize the tp system to make it work kinda how I imagine, but to little success (even with a whole new tp managing system, Yanfly's specifically, the default code is determined to keep the tp regen at a stubborn minimum). If anyone could help, or hell if this system already exists somewhere and I just haven't found it yet, it would be much appreciated! 
I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.
You could have separate variables (one per element) count upward each time a skill used, then restrict skills which require a certain number of 'counters' using a Skill Restrictions script.
With some (a lot) of experimenting and trying to wrap my head around everything, I actually got it to work with a slightly different method. Just by making Common Events and linking those events into the effects of each skill I could tell Fire to add 1 to the control variable 1. From there, the same event would determine if the control variable 1 had a value greater than or equal to 1 and if so, to learn Fire II. Make another Common Event for Fire II and tell it to subtract 1 from that control variable and then determine if that control variable had a value less than or equal to 0 and if so, to forget Fire II.

Admittedly, had I gone in a bit deeper before asking maybe I could have found this, and maybe this will cause confusion for players down the line if I don't find a way to at least keep a log of what counters are needed for what skill, but thank you for taking the time to offer a solution. It at least pointed me in the right direction and I did still find a useful Skill Restrictions script to put away for a future game.

Original thread: https://forums.rpgmakerweb.com/threads/magic-counting-system.53056/