How can I count the frequency of multiples columns with same categorical variables?

I have five columns and I need to count the frequency of variables together, but I don't know to do this.
Each row is a patient and the columns are the combination of the drugs which they use. I need to know, for example, how many times the "Prednisone" appears on these columns, and, thus for all drugs. Can someone help me?
Thank you!


To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.