Save number of electrons in HDF5 file

This doesn't interfere with anything but it is useful for me.

Only merge this if you feel like it, I can live with working on my own branch :wink: