implemented to return vm count for iaas