Similar Items: Reasoning about Data Repetitions with Counter Systems