set counters in mapredtask.