If you have all the products with 'product_cip' you can go with this
$a=array(
'post_type' => 'product',
'post_status' => 'publish',
'posts_per_page' => - 1,
'meta_query' => array(
array(
'key' => 'product_cip',
'value' => 'some value',
'compare'=> '='
)
),
'fields' => 'ids'
);
$b=get_posts($a);
echo count($b);
And if you are looking to get all the product data then
$products_array=array();
foreach($b as $v){
$_product=wc_get_product($v);
echo $_product->get_name().',';
$products_array[]=$_product;
}