show the counter at each loop