This may help.
data abc;/*example dataset*/
input site total_ch;
datalines;
1 5
1 13
1 12
1 12
2 34
2 22
2 44
2 77
3 12
3 11
3 12
3 12
;
data xyz; set abc;
by site;
if first.site then count=0; count+1;
if first.site then sum_total=total_ch; else sum_total+total_ch;
run;
proc sql; create table def as
select site, count, max (sum_total) as maxtotal
from xyz
group by site
having sum_total= calculated maxtotal;
quit;
proc print data=def; run;
This will give you the total counts (# of total charges) per site as well as the sum total charges by each site.