Response of the ionospheric electron content to fluctuations in solar activity