Display item number in window box?

Let's say I'm making a quest and the hero needs to find 4 mushrooms for this NPC. And the NPC will say

"I see you have [X] amount of mushrooms, I'm sorry but I need 4 mushrooms".

I was wondering how to display the amount of mushrooms (that is currently owned from the inventory) in text? Like, what text command can I use such as how we use a command to display the actor's name. o3o
Control Variables # = Game Data > Item [Mushrooms] in Inventory


Show Text:


I see you have \v[#] mushrooms. I'm sorry, but I need 4 mushrooms.
I have a character that uses items as part of his skill. Could I use this to show the number of each item you have in the description of the skill? 

If so, how?

>edit:

Nevermind! I got it. I just didn't realize you were saying set the variable to be equal to the number of items. Dense.
I believe skill descriptions use the same method to print as message boxes, so \v[#] should also substitute the correct number in there. Next time though, please make your own thread rather than necroposting in an old one.


And since the OP has never come back to say if this worked or not, I'm going to go ahead and close it.

Original thread: https://forums.rpgmakerweb.com/threads/display-item-number-in-window-box.20828/