execute if score @s at_num matches 1 as @n[type=arrow,tag=!added] run scoreboard players set @s at_num 1
execute if score @s at_num matches 2 as @n[type=arrow,tag=!added] run scoreboard players set @s at_num 2
execute if score @s at_num matches 3 as @n[type=arrow,tag=!added] run scoreboard players set @s at_num 3
execute if score @s at_num matches 4 as @n[type=arrow,tag=!added] run scoreboard players set @s at_num 4