Licenses are tied to each CPU socket or package, not by CPU core.
You can determine how many ESX CPU licenses an ESX Server requires by running this command at the ESX host console:
The output appears similar to:
The number of packages indicates the number of CPU licenses you need.
Based on VMware KB 1002629