Frequency table using multiset