what would be the corret way to do this

/data modify entity @s SelectedItem set value {id:"minecraft:feather",Count:1b} in the end i want it to set the Count to there score in a scoreboard and not selecteditem but the item in the players inventory no matter where
Continue to help post