Interupt driven pulse counting.