You can get the the total counts by not using the GROUP BY clause:
proc sql;
select count(*) from table a;
quit;
The 2025 SAS Hackathon Kicks Off on June 11!
Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.