How do I create a system that counts how many times you have died?

Thanks a bunch this really helped.