Hello ShekharMumbai,
Thanks for reaching out to Apple Support Communities. It sounds like you have a question about the automatic step counter on your iPhone. We're happy to provide some information to assist.
We'd recommend testing closing and reopening the app.
Close an app on your iPhone or iPod touch
A previous post also states this is as designed as the iPhone step tracking isn't real time. Check out that thread here: iPhone Health App Activity refresh is delayed
Additionally, you can check your connection settings and see if the Health app is using cellular data or if the refresh improves when connect to a strong cellular network or Wi-Fi.
Use cellular data on your iPhone or iPad
Connect to Wi-Fi on your iPhone, iPad, or iPod touch
If you'd like you can also submit feedback here: Apple Feedback - Health app
Cheers!