Counter based task executor.