API:GetCountInBagByName

__NOTOC__
GetCountInBagByName
GetCountInBagByName(ItemName)
Counts the current amount of items, given by an item id, in the bag.
== Parameters ==
=== Arguments ===
:;ItemName
::string - Name of the Item.
=== Returns ===
:;number
::number - The amount of items, refered by given ItemName, currently in the bag.
== Example ==
-- Count the amount of Tin Ore
countTin = GetCountInBagByName("Tin Ore")
-- Count the amount of Zinc Ore
countZinc = GetCountInBagByName("Zinc Ore")
== Notes ==
Searches Item Shop Bag, Transmuter slots, hidden Transmuter slots, and all Bags
== Related Functions ==
* GetBagItemCount
* GetBagItemLink