# GetItemCount is not in World of Warcraft Forever: write C_Item.GetItemCount

Forever 1.60.1 (70959), Interface 16001. An addon that calls `GetItemCount` stops at /reload with `attempt to call global 'GetItemCount' (a nil value)`. Write `C_Item.GetItemCount`; its arguments and returns may differ from the old GetItemCount, read them first. Page: https://wowaddons.gg/forever-api/C_Item.md

```lua
count = C_Item.GetItemCount(itemInfo, [includeBank], [includeUses], [includeReagentBank], [includeAccountBank])
```

Arguments:
- `itemInfo`: ItemInfo
- `includeBank`: bool, default false
- `includeUses`: bool, default false
- `includeReagentBank`: bool, default false
- `includeAccountBank`: bool, default false

Returns:
- `count`: number

---
Make an addon with your AI: tell it "Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it."
