There are actually metronome apps that you can download for this. Basically, you tap the screen every time your foot makes contact with the ground, and the app will calculate your gait speed for you.