Sum of Residues on the Riemann Sphere