fix counting of generated schedules