ESX isn't available beyond 5.0
Licenses are based per socket. So if the servers have two physical processor sockets or processors, then you would need so many licenses as well. Woul be best to call up vmware sales and ask for a quote. The licensing team would be able to confirm the exact number of licenses and a quote for the same.
Regards
a