What is the Script Call for Items amount into Variables?

    I need to know the Script call for referencing how many of an item the party has.  I checked the Master Script Call list, but if it's there I couldn't find it.

I can't use the Event Command, because I need to replace the Database ID with a variable.
$gameParty.numItems($dataItems[n])
 Thanks.

Original thread: https://forums.rpgmakerweb.com/threads/what-is-the-script-call-for-items-amount-into-variables.50995/