# Count Number of Tag Fields

**URL:** https://community.mp3tag.de/t/count-number-of-tag-fields/69298
**Category:** General Discussion
**Created:** [August 2, 2025, 12:18am UTC](https://community.mp3tag.de/t/count-number-of-tag-fields/69298 "2025-08-02T00:18:30Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mista\_j](https://community.mp3tag.de/user_avatar/community.mp3tag.de/mista_j/32/15808_2.png) [@mista\_j](https://community.mp3tag.de/u/mista_j)
#### Post date: [August 2, 2025, 12:18am UTC](https://community.mp3tag.de/t/count-number-of-tag-fields/69298/1 "2025-08-02T00:18:30Z")

</div>

Random but is there anyway to count the number or tags / fields any given track has. Just curious. In my case I'd just like to know if I could use that metric to immediately tell which tracks may be missing some tags I'd normally add & which tracks are data rich. Some files I have contain a heap of extra but informative tags

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [August 2, 2025, 7:33am UTC](https://community.mp3tag.de/t/count-number-of-tag-fields/69298/2 "2025-08-02T07:33:53Z")

</div>

One possible solution is creating a string of all tag fields using `$list()` with a specific field prefix (here: the 3-character long `===`) and the same strings without the prefix.

The character difference can tell the number of fields:

`$div($sub($len($list(===,,)),$len($list(,,))),3)`

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [August 2, 2025, 8:32am UTC](https://community.mp3tag.de/t/count-number-of-tag-fields/69298/3 "2025-08-02T08:32:06Z")

</div>

With the above calculation you could [add a new column](https://docs.mp3tag.de/customization/file-list/) in your [File List](https://docs.mp3tag.de/getting-started/main-window/#file-list) like this:

 ![image](https://community.mp3tag.de/uploads/default/original/3X/d/2/d2822b220913d9d2e553f6dae63c47c460c409bb.png)

Then you can sort your tracks in ascending or descending order by this column to see which one deviates.

 ![image](https://community.mp3tag.de/uploads/default/original/3X/1/6/166c72292781c39fbd0083b6f184d7094b051de9.png)

* * *

For those interested in the calculation:

If the command `$list(===,,)` would show  
_===GENRERock===YEAR2025===Barcode6d6574616c677572752e6d65===TITLEBlack Mamba===ALBUMThe Revenge of Alice Cooper===TRACK01===ARTISTAlice Cooper_

then `$len` (length of the string) would show **142**

If the command `$list(,,)` - without additional prefix characters - would show  
_GENRERockYEAR2025Barcode6d6574616c677572752e6d65TITLEBlack MambaALBUMThe Revenge of Alice CooperTRACK01ARTISTAlice Cooper_

then `$len` would show **121**

`$sub(142,121)` - subtraction - would show **21**

`$div(21,3)` - division - would show **7**

The number 3 in this $div command is the number of choosen prefix characters.  
=== are 3 characters long.

---

<div class="post-metadata">

### Author: ![mista\_j](https://community.mp3tag.de/user_avatar/community.mp3tag.de/mista_j/32/15808_2.png) [@mista\_j](https://community.mp3tag.de/u/mista_j)
#### Post date: [August 2, 2025, 12:22pm UTC](https://community.mp3tag.de/t/count-number-of-tag-fields/69298/4 "2025-08-02T12:22:45Z")

</div>

@Florian @LyricsLover MANY THANKS! This is super cool…now I'm off to play with my new toy.

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [September 1, 2025, 12:23pm UTC](https://community.mp3tag.de/t/count-number-of-tag-fields/69298/5 "2025-09-01T12:23:47Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
