Physic Labs
Step 1 of 4: Total charge = number of ions × charge per ion
Intuition

Measuring current and time is 'counting ions' with an ammeter — Faraday did exactly that in 1834, decades before the electron was discovered.

Q=I t=Nion n eQ = I\,t = N_{\text{ion}}\,n\,e
Analysis

A current II running for a time tt transfers charge Q=ItQ = It. Each ion of valence nn carries charge nene (with e=1,6⋅10−19e = 1{,}6\cdot10^{-19} C), and to be neutralized (deposited/dissolved) at the electrode it must gain or lose nn electrons. If NionN_{\text{ion}} ions are neutralized, the total charge through the circuit is Nion n eN_{\text{ion}}\,n\,e.