a way to count game overs?

hi all!! i was wondering if there is a way to count how many game overs a player has had. i thought about using srdude's game over core to have a common event play every time you game over that adds 1 to a variable, but that just resets once you load back into the game. if this is possible id appreciate some advice !!! (its for a trophy thing you'll get at the end of the game that shows up if you've gone through the whole thing with out getting any game overs)
This plugin allows you to control variables across save files:

I'm not sure of the plugin parameters in there, you might have to use it in conjunction with the SRD plugin to run the event/increment the variable on game over, then save it to the save files.
perfect this worked!! thank you 🙂

Original thread: https://forums.rpgmakerweb.com/threads/a-way-to-count-game-overs.158494/