Generation of an interrupt or a group of interrupts after a predetermined number of interrupts