An octahedral complex with the formula \( \mathrm{CoCl_3} \cdot n\mathrm{NH_3} \) upon reaction with excess of \( \mathrm{AgNO_3} \) solution gives \( 2 \, \text{moles} \) of \( \mathrm{AgCl} \). Consider the oxidation state of Co in the complex is ‘\( x \)’. The value of ‘‘\( x + n \)’’ is ______.