'Count events with current stim channel settings.
Returns
event_count : Counter
Counter mapping event ID to number of occurrences.'

def get_event_info(self):

    if (self.misc_data is None):
        return
    idx = [self.misc_chs.index(ch) for ch in self.stim_chs_array]
    data = self.misc_data[idx]
    if (self.stim_coding == 'channel'):
        coding = 'channel'
    else:
        coding = 'binary'
    stim_ch = _make_stim_channel(data, self.stim_slope, self.stim_threshold, coding, self.stim_chs_array)
    events = _find_events(stim_ch, self.raw.first_samp, consecutive=True, min_samples=3)
    return Counter(events[:, 2])
