<?xml version="1.0" encoding="utf-8"?>
<s1 title="ItemCount"><p></p>
<s2 id="Function" title="Function">
<p>See also: <jump href="/wiki/Items">Items</jump> </p>
<p>See also: <jump href="/wiki/GetItem">GetItem</jump> </p>
<p><em><strong>usage:</strong></em> </p>
<p>m_context.ItemCount(&quot;full.item.id&quot;) ItemCount(&quot;full.item.id&quot;) </p>
<p><em><strong>examples:</strong></em> </p>
<p></p>
<source><![CDATA[echo m_context.ItemCount("player.candy.corn.2013")]]></source><p>will output how many of the 50% food buffs you have that came with the Halloween 2013 promo. </p>
<p></p>
<source><![CDATA[item = "player.box.gambling.3"

if ItemCount(item) execute "useitem {item}"
if ItemCount(item) repeat]]></source><p>will use all of your amulets </p>

<br/>------------------------------------------------------------------------------<br/>
<p> <jump href="/wiki/CategoryFunctions">CategoryFunctions</jump> </p>
</s2></s1>