# see complete list of annotations

**URL:** https://mne.discourse.group/t/see-complete-list-of-annotations/2379
**Category:** Mailing List Archive (read-only)
**Tags:** list-archive
**Created:** [November 18, 2020, 11:31am UTC](https://mne.discourse.group/t/see-complete-list-of-annotations/2379 "2020-11-18T11:31:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)
#### Post date: [November 18, 2020, 11:31am UTC](https://mne.discourse.group/t/see-complete-list-of-annotations/2379/1 "2020-11-18T11:31:17Z")

</div>

External Email - Use Caution

Hello everyone,

My question is \*very\* basic (I think), but I could?t figure it out. I would like to know the number of events stored as annotations in my?raw?file. However, when I call the function?raw.annotations, I get the following:

raw = mne.io.read\_raw\_eeglab(raw\_fname)  
raw.annotations  
\<Annotations | 2030 segments: cross (1005), cross\_warm (10), filler (432), ...\>

There are 7 event codes in total in my file, but I get to see only 3 of them. How can I see the total number of events for each code?

Thanks!

???  
Roberto Petrosino  
he/him/his  
Ph.D., Linguistics  
University of Connecticut  
-------------- next part --------------  
An HTML attachment was scrubbed…  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20201118/3e379fda/attachment.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20201118/3e379fda/attachment.html)

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)
#### Post date: [November 18, 2020, 1:48pm UTC](https://mne.discourse.group/t/see-complete-list-of-annotations/2379/2 "2020-11-18T13:48:16Z")

</div>

External Email - Use Caution

hi,

you can do something like

from collections import Counter  
Counter(raw.annotation.description)

HTH  
Alex
