Counter resets after death?

Try utilizing the variable within GameState.