Can an Event Check How Much of an Item You Have?

An event can check whether or not the party has an item, but is there any way to make it check how much of that item is in the party's inventory (i.e. 5 Potions, or something)?
Set a variable as the number of the item held in your inventory, and then use a conditional branch based on that variable.
Thanks! 😀

Original thread: https://forums.rpgmakerweb.com/threads/can-an-event-check-how-much-of-an-item-you-have.57725/