Help with tracking turn count in battles

So I've used the search function to try and answer this question first, however the only thing I could find was this by DoubleX;
 

Spoiler
BattleManager.update = function() {
if (!this.isBusy() && !this.updateEvent()) {
switch (this._phase) {
case 'start':
this.startInput();
break;
case 'turn':
this.updateTurn();
break;
case 'action':
this.updateAction();
break;
case 'turnEnd':
this.updateTurnEnd();
break;
case 'battleEnd':
this.updateBattleEnd();
break;
}
}
};



In this I can see that the "BattleManager" keeps track of the case 'turn' but I'm unsure of how to call for this info. Is it as simple as "if BattleManager.turn = x" or do I need to alter this process to export the result to a global variable each turn that I can then call and then alter the battleEnd to reset the variables value to zero?
That is not the turn count - it is the battle phase, which is a different thing.


What you are looking for is $gameTroop.turnCount()
Oh thank you very much! I really appreciate all the help I've gotten on this forum despite my newb questions.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-tracking-turn-count-in-battles.70886/