Total number of unpaired electrons in the complex ions \(\left[\mathrm{Co}\left(\mathrm{NH}_3\right)_6\right]^{3+}\) and \(\left[\mathrm{NiCl}_4\right]^{2-}\) is \(\qquad\)