Adding to a variable through script call

Is it possible to add or subtract from a variable through script calling? I am using Yanfly's Buff and States Core plugin to try and count how many characters in a battle have the state isDead. I found the script call $gameVariables.setValue(var, value); but it only seems to set the vaariable to a specific number or another variable which if I use another variable then I end up in an infinite loop causing my game to freeze.


problem 2.png


Long story short is there a way to add to a variable through script call instead of just setting it?


Yanfly's Buff and States Core: http://yanfly.moe/2015/12/25/yep-50-buffs-states-core/
Logic: get original variable, add to it, then put it back in.

Code:
$gameVariables.setValue(11, $gameVariables.value(11) + 1);
Haha thank you didn't think of that. I only thought of the whole setValue thing.

Original thread: https://forums.rpgmakerweb.com/threads/adding-to-a-variable-through-script-call.55830/