Add alarm counting.