What JonathanPDX said.
You can also do one note exercises using a metronome to play quarter, eighth, sixteenth notes and more (triplets, swing eighths, etc.) at varying tempos. Start at a slow tempo and gradually speed it up as you become more comfortable with your counting. Helps build muscle...