Buff/state for X number of encounters

Couple of things here.
First, is there anyway to have a STATIC number instead of % for parameter buffs on states?
Second how can I get this to last for say, 2 encounters?

Like say I want a temporary +5 attack buff to last for 2 battles then is goes away. How do I go about doing this?
With a static number, such as +5, you can use Yanfly's Buff & State Manager found here: https://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/buff-state-manager/
As for having a buff last a certain number of rounds... I am currently at a loss. I am sure this could be done with variables and conditional checks but I am at work at the moment and cannot look at it right now.
Okay I think I found a way to make this work by using Yanfly's battle aftermath I can run a common event.
I can have a common event have variables count down at the end of every encounter and once they hit zero they remove the states I need removed.

So this is solved.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/buff-state-for-x-number-of-encounters.103805/