How to get the number of real electrons generated and the electrons collected