State based variable issue in Battle Events

Hi there.
I'm working on a fight for my game where the enemy is supposed to get enraged after being stunned 3 times. I thought I would simply make a check for the stunned state and make a variable go up, then have a separate page that checks for the variable being greater than/equal to 3 and apply the Enraged state.

However, I can't get it to trigger at all after trying just about every condition and span. The stunned state disappears at the end of a single turn and I'm wondering if that's what's causing me issues.

Here are the 2 pages in question:
1.png

2.png


I'm a little confused as to what I'm doing wrong here. Would any of you know what I could do to achieve my goal?
Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/state-based-variable-issue-in-battle-events.158333/