Pedometer working in the background

I want to make a pedometer, but when the application is closed, the step counting stops. Is there a possibility to count steps in the background.

try this

Taifun