Hi STATA experts,

I am try to generate a descriptive statistics table that showing the number of firms within each country (having 711 companies in 12 countries), but each time i try to do this it shows me the number of observations by country rather than the number of firms by country
Code:
. tabstat A , by ( C ) stat(n mean    median    max    min)    format

Summary for variables: A
by categories of: C 

C          N      mean    p50        max    min
                
1       1744  230.1703    191        698    1
2        606 229.61221    218        667    2
3        282 178.53901    135        659    5
4       1086 416.03039    445        714    10
5        982 295.39817    258        700    11
6        759 293.15283    272        702    12
7       2303 418.98567    413        716    23
8       1557  503.2569    530        715    25
9        254 349.71654    392        636    27
10        682 414.10704    441        649    69
11         45 313.66667    225        540    176
12         45 380.33333    376        459    306
                
Total      10345 358.26747    358        716    1
                

.
Would appreciate your help !