RPG Maker MV: Anyone know how to create spell counters or deal damage to someone who uses a spell?

I've been out of the loop with all things RPG Maker as of late due to recent games and a bit of Yugioh Duel Links. It gave me an idea for spell counters where they could end up being used as a resource for stronger attacks, boosting up stats temporally. Even the potential to deal damage to an enemy or an enemy to deal damage to anyone who either used a spell or generated a spell counter.

If anyone can help me with this, it would be much appreciated and this is for the current version of RPG Maker Mv if anyone is wondering.
You could make it so casting a spell gives someone a debuff like "Spell sickness" that lowers def by 20% or something. I have an empower status for when people use fire spells on fire spirits, air on air spirits, etc. that makes them stronger.
Spoiler: Buff Stat
Empowered_zpsidugwfv1.png
Spoiler: Where to add status
Effects%20of%20spells_zpsh5l7ywrt.png
You could make it so casting a spell gives someone a debuff like "Spell sickness" that lowers def by 20% or something. I have an empower status for when people use fire spells on fire spirits, air on air spirits, etc. that makes them stronger.
Spoiler: Buff Stat
Empowered_zpsidugwfv1.png
Spoiler: Where to add status
Effects%20of%20spells_zpsh5l7ywrt.png
Oh thanks! This is exactly what I'm trying to do! 🙂
Yanfly's Buffs & States Core allows you to set a counter on states.

Original thread: https://forums.rpgmakerweb.com/threads/rpg-maker-mv-anyone-know-how-to-create-spell-counters-or-deal-damage-to-someone-who-uses-a-spell.76064/