Reasoning about Data Repetitions with Counter Systems (Logical Methods in Computer Science, 2016)