MV Counterattacks not consuming item ammo

I'm using Unco Ammunition, Yanfly Battle core, and Yanfly Counters. Skills that normally consume a "bullet" item are not consuming said bullets when used as counters.

I want to make sure the counters don't go off when the player is out of ammo, and I want the counters to consume ammo as intended. However, I'm not sure how to bring this about!

One solution I considered: using a duplicate skill with a different ID for counters VS the regular version of the attack that gets used when the player selects it. This duplicate skill could only activate conditionally (if ammo > 0) and directly subtract ammo every time it is used... but I'm not sure how to set this up.
That Yanfly counter plugin seems to have a counter condition notetag, where you can put code.

So it would be:

<Counter Condition>
Eval: $gameParty.numItems($dataItems[Ammo Id]) > 0
</Counter Condition>

And then if you do it like you decided with a duplicate skill, it can have a common event that subtracts one ammo.

That should work, I think, LOL.

EDIT:
Replace that "Ammo Id" with your ammo item id number.
Thank you, this worked perfectly!

Original thread: https://forums.rpgmakerweb.com/threads/counterattacks-not-consuming-item-ammo.161897/