API GetItemCount

Returns the number (or available charges) of an item in the inventory.
 count = GetItemCount(itemInfo [, includeBank, includeUses, includeReagentBank])
==Arguments==
:;itemInfo: - 
:;includeBank: - If true, includes the bank
:;includeUses: - If true, includes each charge of an item similar to 
:;includeReagentBank: - If true, includes the reagent bank
==Returns==
:;count: - The number of items in your possession, or charges if includeUses is true and the item has charges.
==Example==
local count = GetItemCount(29434)
print("Badge of Justice:", count)
local count = GetItemCount(33312, nil, true) 
print("Mana Saphire Charges:", count)
local clothInBags = GetItemCount("Netherweave Cloth")
local clothInTotal = GetItemCount("Netherweave Cloth", true)
print("Netherweave Cloth:", clothInBags, "(bags)", (clothInTotal - clothInBags), "(bank)")
==Patch changes==
==References==