Generalise runevery so that it takes an arbitrary number of (count, cmd) pairs.