How to make a death counter in Minecraft

Ok, so I am making a pvp arena. I want to be able to track the number of deaths each person has. So if they hit 5 they are teleported to a "waiting cell" until the next round.


Try this: do the first one first then the next one

/scoreboard objectives add Deaths deathCount
/scoreboard objectives setdisplay list Deaths

This will display the player's amount of deaths when you push the Tab button.