Your best bet is to restructure your data using PROC TRANSPOSE and SCAN() it so that you only have one value per cell.
Then PROC FREQ will do the counts.
Ready to join fellow brilliant minds for the SAS Hackathon?
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.