setblock 34 37 -23 emerald_block
scoreboard players reset #all death.total
tag @e remove found_item
execute as @a run scoreboard players operation #all death.total += @s death.total
execute as @e[tag=item_spot] at @s if block ~ ~ ~ air run tag @s add found_item
scoreboard players set #found_items V 0
execute store result score #found_items V if entity @e[tag=found_item]

data merge entity 52889c68-2898-44be-abad-0761ddf395e8 {text:'[{"text":"Statistiken","color":"aqua","bold":true},{"text":"\\n   ▪ Alle Tode = ","color":"white","bold":false},{"score":{"name":"#all","objective":"death.total"},"color":"gold"},{"text":"\\n   ▪ Gefundene kosmetische Items = ","color":"white","bold":false},{"score":{"name":"#found_items","objective":"V"},"color":"gold"},{"text":"/12","color":"gold"}]'}

execute as @e[tag=tester_npc] run data merge entity @s {CustomNameVisible:1b}
scoreboard players set #final time 1