InventoryItem: now counting materials