Variable for item count

I am trying to make a variable that counts +1 every time I pick up a specific item.. an item that I get rewarded after killing an enemy.

I am using on map battles so the troops section is not used.

If i have 10 potions in my inventory i want the variable to be 10. Simple as that.

I would like details please im newish
You can go into the troops pannel and add a control variables and add plus 1 for that item every time you win in the event window.
@Uranium there is absolutely no need to count like that.
At the moment when you need to know how many potions you have, use a control variable command on game data : item in inventory, and the number of how many potions you have in your inventory at that moment will be placed into that variable.
Hey thanks guys. I got it sorted out. Much appricated.

Original thread: https://forums.rpgmakerweb.com/threads/variable-for-item-count.82087/