Hold cobblestone with 12 full stacks and 16 more in your inventory, and it shows 784 Cobblestone above your hotbar.
It counts your inventory, hotbar and offhand. It hides when your hand is empty or when you press F1.
Settings
Type /stackcount in chat.
- Exact match: only count stacks identical to the one you're holding, like same name or same enchantments
- Compact: show just the number
- Position: above or beside the hotbar, with offsets
- Scale: 0.5x to 2x
Client side only. Works on servers. Needs Fabric API.