count_pairs function

Count pairs