Variations of the occurrence rate of discontinuities in the interplanetary magnetic field