Counting common perpendicular arcs in negative curvature