Total number of unpaired elecrons in the complex ions \( [\mathrm{Co(NH_3)_6}]^{3+} \) and \( [\mathrm{NiCl_4}]^{2-} \) is: