static void repeat(Runnable task, int count) {
    for (; count > 0; count--) {
      task.run();
    }
  }
Repeat {@code task} for {@code count} times serially.

@param task to repeat
@param count number of times
geode-concurrency-test/src/main/java/org/apache/geode/test/concurrency/Utilities.java