I want customers having 0 orders and there count
I have done for order count of each customer but I want count of customer having 0 orders
$CustomersCollection = Mage::getModel('customer/customer')->getCollection();
foreach ($CustomersCollection->getData() as $customer) {
$collection = Mage::getModel('sales/order')->getCollection()
->addAttributeToFilter('customer_id', array('eq' => $customer['entity_id']));
// var_dump(count($collection->getData()));
if(!count($collection->getData())) {
var_dump(count($collection->getData()) . "----" . $customer['entity_id']);
}
}