I am having a database having name and hobbies(as multivalued attribute) and I want to find out what is the count of occurence of more than one same value For example If this is a sample database
A reading
A dancing
B reading
B dancing
Then the result should be
List of hobbies | Number of occurrence
-----------------|---------------------
reading, dancing | 2