how to set the number in the custom tag of an item held by the player?

how to set the number in the custom tag of an item held by the player from scoreboard? i tried this: execute store result entity @s[tag=shoot] SelectedItem.tag.ammo int 1 run scoreboard players get @s ammo_stats
Continue to help post