Calculation of the number of electrons transferred