Track a map event steps into a variable?

I have a moving event on a map and I need to track how many steps it takes and store it into a variable.

I tried $game_variables[53] = $game_map.events[4].steps but it must be wrong because I get an error.

Can anyone help me with the correct script?
How does it move? We'll need that information first. If it's just standard random movement you can change it into a custom autonomous movement type. Inside there set the move "Move at Random" then do a script call "$game_variables[53] += 1"

It'll increment up for each step.
That'll work, thanks.
For some reason it's not working. I set the event to Custom Movement and put Move Left and $game_variables[52] -= 1 and it's not counting the variable 52 down. IT should work so I must have another event messing with it somehow.

Original thread: https://forums.rpgmakerweb.com/threads/track-a-map-event-steps-into-a-variable.37622/