Solved! I couldn't get any pedometer working on my Moto Z4

I found one that works. It's called Pedometer Step Counter.
The logo is pink.
Here it is in Google Play.
Once installed, go into its settings, and follow the instructions for "How to fix the Stop Counting Steps Issue."
Also change the sensitivity to High.