Semi-negative pairwise counting