Set Variable to Turn Number In Battle

I'm looking for a way to utilize the battle's turn number outside of enemy action patterns and battle events. Is there any way to set the turn number to a variable with a script call?
In the Script field of Control Variables, $gameTroop.turnCount();
In the Script field of Control Variables, $gameTroop.turnCount();
Thank you, that was exactly what I needed! I guess this can be closed now.

Original thread: https://forums.rpgmakerweb.com/threads/set-variable-to-turn-number-in-battle.169515/