I want to receive the step counter value in real-time using the input system

Currently, it is possible to receive values using the stepcounter, but the update frequency is too slow.

What function should I use to receive stepcounter values in real-time?