Fix frequent count and add set

 - Clear all set data before adding a set
 - Update counting in frequency method to count set items instead of groups