Exclude pairing negatively charged anions with oxygen when computing oxygen by stoichiometry.  (Set their effective charge = 0 for the computation.)