getNumberOfWorkers function

Get the Number of Workers