# Can i get stats for differents type of file (count of .mp3 or .flac files)?

**URL:** <https://discourse.beets.io/t/can-i-get-stats-for-differents-type-of-file-count-of-mp3-or-flac-files/1310>\
**Category:** Help\
**Created:** [May 28, 2020, 8:35am UTC](https://discourse.beets.io/t/can-i-get-stats-for-differents-type-of-file-count-of-mp3-or-flac-files/1310 "2020-05-28T08:35:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MyDogIsGay](https://avatars.discourse-cdn.com/v4/letter/m/d2c977/32.png) [@MyDogIsGay](https://discourse.beets.io/u/MyDogIsGay)\
**Post date:** [May 28, 2020, 8:35am UTC](https://discourse.beets.io/t/can-i-get-stats-for-differents-type-of-file-count-of-mp3-or-flac-files/1310/1 "2020-05-28T08:35:58Z")

</div>

Hello.

First of all, thanks you so much for Beets !  
It was definetely the software i was looking for, in order to reorganise all my audio files.  
Such a pleasure now to have a clean folder and files organisation !

Now, i would like to know if it is possible with “stats” command to know how many .mp3, .flac or .ogg file do i have for each type.  
For exemple :  
300 files as .ogg  
250 files as .flac  
etc…

The perfect solution would provide also a count for each mp3 bitrate files, for exemple :  
255 files as 128kb/s mp3  
55 files at 320kb/s mp3  
etc…

I’ve tried things like “beet stats --format=mp3” without succes.  
I can’t find in the documentation all the option available for “stats”.

But maybe should i just use linux find command ?

---

<div class="post-metadata">

**Author:** ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)\
**Post date:** [May 28, 2020, 5:15pm UTC](https://discourse.beets.io/t/can-i-get-stats-for-differents-type-of-file-count-of-mp3-or-flac-files/1310/2 "2020-05-28T17:15:17Z")

</div>

Hello! The `stats` command, like most commands including `list`, accepts a query argument. Please take a look at the documentation page about queries—it’s a flexible way to specify _any_ set of music you want to look at. For example, `beet stats format:MP3` might be what you’re after, but you will also want to experiment with `beet list` first to see what various queries do.

---

<div class="post-metadata">

**Author:** ![MyDogIsGay](https://avatars.discourse-cdn.com/v4/letter/m/d2c977/32.png) [@MyDogIsGay](https://discourse.beets.io/u/MyDogIsGay)\
**Post date:** [May 30, 2020, 5:53am UTC](https://discourse.beets.io/t/can-i-get-stats-for-differents-type-of-file-count-of-mp3-or-flac-files/1310/3 "2020-05-30T05:53:13Z")

</div>

Oh, sorry, i think i’ve missed that line in the documentation !  
“$ beet list format:MP3 bitrate:…128000”  
Thanks Adrian !
