$scoreboard players add @s coins_to_add $(amount)
$execute if score @s coins_to_add matches 1 run tellraw @s {"text":"+$(amount) Coin","color":"gold"}
$execute if score @s coins_to_add matches 2.. run tellraw @s {"text":"+$(amount) Coins","color":"gold"}