Pairs\triplets counting