# how to get the number of tracks from an album

**URL:** https://community.mp3tag.de/t/how-to-get-the-number-of-tracks-from-an-album/11788
**Category:** Support
**Created:** [March 28, 2011, 4:20pm UTC](https://community.mp3tag.de/t/how-to-get-the-number-of-tracks-from-an-album/11788 "2011-03-28T16:20:08Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![max\_124\_cOre](https://community.mp3tag.de/user_avatar/community.mp3tag.de/max_124_core/32/346_2.png) [@max\_124\_cOre](https://community.mp3tag.de/u/max_124_cOre)
#### Post date: [March 28, 2011, 4:20pm UTC](https://community.mp3tag.de/t/how-to-get-the-number-of-tracks-from-an-album/11788/1 "2011-03-28T16:20:08Z")

</div>

hi there...

since a while i'm trying to retrieve the total number of tracks from an album.  
i need the total track number to format the TRACK tag like 01/04.  
anyone an idea hoe to realize this?  
%\_total% and %\_max\_counter% are returning no informations. ![:huh:](https://community.mp3tag.de/uploads/default/original/1X/f15ee73c0fd9ec3b0db7481f0558638f8ee224ce.gif ":huh:")

thnx for help

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [March 28, 2011, 4:25pm UTC](https://community.mp3tag.de/t/how-to-get-the-number-of-tracks-from-an-album/11788/2 "2011-03-28T16:25:51Z")

</div>

> [@max-cOre](#):
>
> format the TRACK tag like 01/04.

Unfortunately, you do not say where you need this information.  
In scripting there is a variable %counter% but this only counts. So, in actions there is no way to determine the total number of things to come.  
The only way for numbering tracks including the total number is to use the numbering assistant in Extras (or the tool bar).  
Tick "leading zeros" and "save totals" to get a track number like you suggested.

---

<div class="post-metadata">

### Author: ![max\_124\_cOre](https://community.mp3tag.de/user_avatar/community.mp3tag.de/max_124_core/32/346_2.png) [@max\_124\_cOre](https://community.mp3tag.de/u/max_124_cOre)
#### Post date: [March 28, 2011, 4:40pm UTC](https://community.mp3tag.de/t/how-to-get-the-number-of-tracks-from-an-album/11788/3 "2011-03-28T16:40:47Z")

</div>

> [@ohrenkino](#):
>
> The only way for numbering tracks including the total number is to use the numbering assistant in Extras (or the tool bar).  
> Tick "leading zeros" and "save totals" to get a track number like you suggested.

ok this is what i'm using at the moment.  
but i still had the hope that this could be done from a batch process... would be nice if it could...

anyway...thnx for quick answering

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [March 28, 2011, 4:48pm UTC](https://community.mp3tag.de/t/how-to-get-the-number-of-tracks-from-an-album/11788/4 "2011-03-28T16:48:41Z")

</div>

If you tag only one album you can use %\_total\_files%

---

<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: [February 9, 2026, 12:23pm UTC](https://community.mp3tag.de/t/how-to-get-the-number-of-tracks-from-an-album/11788/5 "2026-02-09T12:23:00Z")

</div>


