Having an event detect number of items in inventory

I've searched quite a bit and never found a definitive answer for what I am trying to do

Even Purpose.  Turn in X amount of items and receive an reward.

I figured this out with variables but the issue is I want monsters to drop the item as well.  I havent figured out a script to increase variables when a monster dies

So here it what I would like if possible.

The Item is Iron ore and I want 

Either

Have iron ore = to a variable...  So if you have 5 ores in your inventory is sets the variable to 5 as well

Or

Have the Event to be able to Read the amount of items in the inventory 

Is this possible?
So you want the monsters to drop the iron ore in battle?


go to database > enemies > drop item to have them drop item iron ore


To get the number of items you have, you create a variable,


and set the variable to it.


control variables > game data > item in inventory item iron ore
Play the Variables Guide, it tells you exactly how to do this.
Thanks for the help.  I managed to get it working. It works great.  Moderators feel free to close this thread.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/having-an-event-detect-number-of-items-in-inventory.15539/