lscpu output, the “CPU(s)” line gives the total number of logical CPUs (aka threads). If it’s run inside a VM, that’s the number of virtual cores assigned to the VM, in your case 32.
The other information provided by
lscpu gives more detail, and should end up matching the number of logical CPUs: “Thread(s) per core” × “Core(s) per socket” × “Socket(s)”. The characteristics of the physical CPUs in the host don’t have much bearing on the characteristics of the virtual CPUs inside the VM, and they don’t add to the allocations — if your host CPU has two threads per core, that doesn’t multiply the assigned cores inside the VM.