A team of workers could have completed their assigned job in 24 hours if they would have worked together. However, only 1 worker worked during the first hour, a second one started working with him at the beginning of the second hour, a third joined them at the beginning of the third hour, and so on, to the point when all the workers worked together for the remaining several hours. The resulting work time would have been reduced by 6 hours if all but 5 workers worked together from the start. Find the number of workers.