You could attach a socket to each foot, then attach a box collision to each foot socket. When they overlap with another object add +1 to an int that would be a “step counter”.
I suppose it would, though honestly I know nothing about animation so I couldn’t answer that with certainty. This solution is the way I would do it due to the limited knowledge I have on the subject of animation in general.
Animation modification could only apply at a certain part of the animation (a key frame) however if you step on something that you hit before that key animation is reached (ex on a slope) then that would not be as accurate.
, thank you for the info, i had the same idea about adding a collision box on the heel i just forgot that i had to add a socket beforehand