Update schedule.c

counter didn't increase