How to keep track of when the player dies

I need a death counter for my game for when the player dies but I’m not sure how to make one.

Make a global of all of the deaths then you add a label of numbers and attach a global to the value