class Countdown implements RepeatingAction {

    @Override
    public void run(SchedulerTask owner) {
        countdownTask.onTick(++timesExecuted);
        if (timesExecuted == taskOptions.getTimesToRun()) {
            countdownTask.complete();
            owner.cancel();
        }
    }

}