[PATCH v2 2/6] virsh: domain: refactor virshCPUCountCollect()