Calculation/statistics in a list

In a list where I have one line per invoice with the name of the customer, the date and the amount, I would like to know how many customers I have. (each customer having a variable number of invoices)
I’m going around in circles without finding thank you for your help.