I guess you cannot do that. I think i have another method for you, but this is a bit complicated.
If you are using Yanfly's Buffs & States Core plugin, you can also use this State Categories plugin:
http://yanfly.moe/2016/04/03/yep-89-state-categories/
The State Categories Plugin provides you a way to group many states into one using this note tag
<Category: text>. For example, i group all negative states into 1 called "Ailment", so i put this note tag in every single negative state:
<Category: Ailment>
This plugin also provides you a function to return the number of categorized states:
battler.getStateCategoryAffectedCount('text');
So if you want to return the number of negative states that is categorized in "Ailment" group and is currently affecting your target, put this in your damage formula:
b.getStateCategoryAffectedCount('Ailment')
For example, the damage is equal to your ATK * number of negative states on target, the damage formula should be: a.atk * b.getStateCategoryAffectedCount('Ailment')
I haven't tested this yet so i can't guarantee that it will work.