Try ERPNext Buy Support Partners Foundation

How to Count Sales Orders done per each Customer?

How Can I get number of Sales Orders that did for each customer like in the dashboard of customer document (shown in following snapshot)

Or how can I fetch this number from customer in sales order document?