How would I do this in the easiest way possible

So, essentially, I have a game project that I need to get done for college, and I've made something I think might be a little hard to create, and I'm going to an art school so programming ain't my strong suit.

Here is a list of stuff i need that I'd really appreciate help with

I need to create a bar that goes up when the enemy is attacked. Lets call it LP

LP needs to have been triggered 12 times or more in 12 different battles to unlock a secret.

The secret unlocks a different ending

How do I do this? 🙂
Is it okay if the bar is visible at all times, or just during battle?
Is it okay if the bar it visible at all times, or just during battle?
Just during battle would be ideal! If that's possible 🙂

Original thread: https://forums.rpgmakerweb.com/threads/how-would-i-do-this-in-the-easiest-way-possible.145878/