count_compare function

Compare unique values before and after data modification