Quantity of key items in conditional branch?

I'm trying to create an event which depends on a certain quantity of an item. Can it be/How is it done?
you need two command - first a control variable to load how many items the player has into a variable, and then a conditional branch checking the value of that variable
Sorry to be a nuisance, but how would I do this?

^-^" It's the first time I've had to do this for a project.
In that case, I suggest you follow the first link in my signature to the starting point and work through the tutorial there - it will probably take you one or two weeks as a minimum, but it will also speed up your later game development a lot, because it looks like you're missing a lot of the basics of using RM.


Control Variables : Game data : Item in Inventory


Conditional branch : Variable = number

Original thread: https://forums.rpgmakerweb.com/threads/quantity-of-key-items-in-conditional-branch.49046/