Hi I have a panel data. Gvkey is an identifier for firms and Fyear is an identifier for year. Sic is used to identify industry.

How can I get the number of unique firms or the number of unique industries in my sample?

Thank you in advance for your help!