Does "keep" mean the same thing in these two sentences?

Keep count.

The pianist kept time with the metronome.
the same meaning