setting total executors based on the totalExecutors key in the api
rather then counting