Added unique_copy_with_count.