int->long for pair counts