nbrOfWorkers function

Get the number of workers available