EXTI interrupt pulse counter