I second what daphnissov said. Although it depends on your hardware, how many sockets, how many cores per socket, how much memory.
You may be interested in reading this VMware blog for further insight in the matter. The tables will help you with this setting.
In a nutshell, stay with 1 core per socket unless you cross a NUMA node boundary.