How to get steps game variable?

I am building a simply achievements system and I want to unlock a specific one when player reaches a count.

I am using a Game_System prototype, so I don't know if I can access it from here:
Code:
    Game_System.prototype.countAchievements = function() {
        var step = Game_Party.steps; // <-
        console.log("steps: " + step);
    }

It returns
steps: undefined

How to access a Game_Party variable from a Game_System function?
Oh, I got it!
Code:
    Game_System.prototype.countAchievements = function() {
        var step = $gameParty.steps();
        console.log("steps: " + step);
    }

Original thread: https://forums.rpgmakerweb.com/threads/how-to-get-steps-game-variable.112569/