How assign the Item-10 amount number to a variable?

Hello!
Does anyone of you know how many "item-X" the player has got and add the number to the variable?
Actually I have x4 item-10, and I need to store the number 4 in a variable...
Do you mean the 10th item in the database? In that case, it's fairly straightforward

rJurOv0.png



dWnIzVP.png



UyHiZtv.png
Thank you!!!

Original thread: https://forums.rpgmakerweb.com/threads/how-assign-the-item-10-amount-number-to-a-variable.116241/