How to get Frequency Table (count) of a Categorical Variable in R