packer/plugin: Count number of interrupts atomically