Calculating the concentration of ions

Thanks for your response.
Do you mean the number of ions in the box is considered as a mole?
For example here, in the topology file, I have 100 moles Mg and 143 moles Cl?