You can use a metronome to keep time