Do note however that a whole electron is usually too much, it will correspond to a doping level of 1e22/cm3 or something. Also in this case you might as well insert an actual dopant, P or B in Si for instance. So the more common use for the charge keyword is to enable a lower doping concentration without increasing the unit cell size dramatically.