Self.ItemCount

Parameters

number itemid the id of the item you wish to count

boolean deep counts cascaded backpacks when true

Return

number The number of items the player has in their visible inventory.

Usage
local runes = Self.ItemCount(1234)
print('You have ' .. runes .. ' runes!')