maxWorkerCount should be a const method.