I had the same issue in vRA 8.2 (on-prem) when trying to do cpuCount/coreCount on a vSphere machine.
Finally opened an SR, and was informed that coreCount is not implemented yet in the on-prem version of vRA 8.x.
It's expected to be enabled in 8.3. If you are on cloud version, then should be working.