Ostinato
An ostinato can be a repeated group of notes or just a rhythm.  It is similar to a riff in jazz.  Many kinds of music use ostinati, e.g. classical music, jazz, boogie-woogie and African music.