count_customers_by_country
Counts customers by country from phone-number prefixes, returning customer totals per country. Filter by a country name or ISO code to get that country's count, with 0 when no customers exist.
Instructions
Count customers by country. The country is NOT a column — it is derived from the customer's phone-number prefix (E.164), so do not look for a country column. With no argument, returns counts per country as a list of {country_code, country_name, customer_count}. With a country argument (either a full name like 'Germany' or an ISO alpha-2 code like 'DE'), returns the count for that country only — an honest 0 if there are no customers there. An unknown country name returns an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | No |