Long video title but that's how it is. Now the part you've all been waiting for because you probably don't want to sit through a 2 minute and 40-second video:
#// Scoreboard
scoreboard objectives add counter dummy
#// Regular items
execute as @a store result score @s counter run clear @s stone 0
#// Special items
give @p stone{special:1b} 184
execute as @a store result score @s counter run clear @s stone{special:1b} 0
![](https://i.ytimg.com/vi/DKrLvnP1Nqg/maxresdefault.jpg)