Return each customer and their distinct product count with SQL aggregation and deterministic sorting.