No. of sales orders by customer

The program does not store a variable for number of sales orders in a customer’s record. So you cannot do what you ask.