Revert "Revert "Typo in function call _getNumCores corrected""

This reverts commit 12f4fd186007dff7d0b33c93f72a273f1b4f7650.