pair, set, comparison, counter for pairs