Counter on top of a list
Asked by Tigo Reijnen:

Is there a way to have a counter on top of a list to see how many cards there are in the specific list?


Answers:
author: Iain Dooley
body: [@Tigo Reijnen](/t5/user/viewprofilepage/user-id/3975402) this Trellinator function will do the job cross platform by appending the list count to the list name:

<https://gist.github.com/iaindooley/a440a6a91b68676f489a0b64652b95ac>

You can read more about Trellinator here:

<https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Introducing-Trellinator-Automate-Trello-with-Google-Apps-Script/ba-p/925271>

comments: author: Tigo Reijnen
body: Thanks for your help!


author: Iain Dooley
body: [@Tigo Reijnen](/t5/user/viewprofilepage/user-id/3975402) hey since I posted this reply, we have released a platform called BenkoBot that makes it much simpler to install and run Trellinator functions.

You can now install from this link:

[Click here to install a list updates function](https://app.benkobot.com/addlistener?functionName=updateListCounts&eventType=addedCard&code=dmFyIG5vdGlmID0gbmV3IE5vdGlmaWNhdGlvbihub3RpZmljYXRpb24pOwoKdHJ5CnsKICAgICAgICB2YXIgY2FyZCA9IG5vdGlmLmFkZGVkQ2FyZCgpOwoKICAgIHRyeQogICAgeyAKICAgICAgaWYocGFydHMgPSAvKC4rKSBcKChbMC05XSspXCkvLmV4ZWMobm90aWYubGlzdEFmdGVyKCkubmFtZSgpKSkKICAgICAgeyAKICAgICAgICBub3RpZi5saXN0QWZ0ZXIoKS5zZXROYW1lKHBhcnRzWzFdKyIgKCIrbm90aWYubGlzdEFmdGVyKCkuY291bnRDYXJkcygpKyIpIik7CgogICAgICAgIGlmKHBhcnRzID0gLyguKykgXCgoWzAtOV0rKVwpLy5leGVjKG5vdGlmLmxpc3RCZWZvcmUoKS5uYW1lKCkpKQogICAgICAgIHsgCiAgICAgICAgICBub3RpZi5saXN0QmVmb3JlKCkuc2V0TmFtZShwYXJ0c1sxXSsiICgiK25vdGlmLmxpc3RCZWZvcmUoKS5jb3VudENhcmRzKCkrIikiKTsKICAgICAgICB9CiAgICAgIH0KICAgIH0KCiAgICBjYXRjaChlKQogICAgeyAKICAgICAgTm90aWZpY2F0aW9uLmV4cGVjdEV4Y2VwdGlvbihJbnZhbGlkQWN0aW9uRXhjZXB0aW9uLGUpOwogICAgICBpZihwYXJ0cyA9IC8oLispIFwoKFswLTldKylcKS8uZXhlYyhjYXJkLmN1cnJlbnRMaXN0KCkubmFtZSgpKSkKICAgICAgewogICAgICAgIGNhcmQuY3VycmVudExpc3QoKS5zZXROYW1lKHBhcnRzWzFdKyIgKCIrY2FyZC5jdXJyZW50TGlzdCgpLmNvdW50Q2FyZHMoKSsiKSIpOwogICAgICB9CiAgICB9Cn0KCmNhdGNoKGUpCnsKICAgIE5vdGlmaWNhdGlvbi5leHBlY3RFeGNlcHRpb24oSW52YWxpZEFjdGlvbkV4Y2VwdGlvbixlKTsKICAgIHZhciBjYXJkID0gbm90aWYuYXJjaGl2ZWRDYXJkKCk7CgogICAgaWYocGFydHMgPSAvKC4rKSBcKChbMC05XSspXCkvLmV4ZWMoY2FyZC5jdXJyZW50TGlzdCgpLm5hbWUoKSkpCiAgICB7IAogICAgICBjYXJkLmN1cnJlbnRMaXN0KCkuc2V0TmFtZShwYXJ0c1sxXSsiICgiK2NhcmQuY3VycmVudExpc3QoKS5jb3VudENhcmRzKCkrIikiKTsKICAgIH0KfQ==)

Once you enter your API key/token, you will see the code so you can review it before saving it.

Once you have reviewed it, you can choose to run it on "all boards" and store the function.

Then, on any board you're a member of, simply change any list name to append " (0)" to the end of it, eg. if you have a list "To Do" change it to "To Do (0)".

Then you can add cards to that list, archive cards from that list or move cards in or out of that list and the function will update the (0) to have the actual number of cards in it.


author: Kynan Hughes
body: [@Iain Dooley](/t5/user/viewprofilepage/user-id/1416112) It works ?


author: Soumyadeep Mandal
body: Hi [@Tigo Reijnen](/t5/user/viewprofilepage/user-id/3975402) ,

Welcome to the community!

Please visit the below link and install it.

<https://chrome.google.com/webstore/detail/cardcounter-for-trello-wi/jbdmgabkegidhagemkfdogmplgelaoab>

I hope it will solve your problem!

comments: author: Tigo Reijnen
body: Thanks!


author: Tigo Reijnen
body: [@Soumyadeep Mandal](/t5/user/viewprofilepage/user-id/3861721) My colleague is working with the Trello App with Windows 10. is there a way to get this counter in that app as well? Regards Tigo


author: Soumyadeep Mandal
body: Hi,

In that case, I don't think any power-ups are available that's why people work on Jira but have a look at it!

<https://trello.com/power-ups/59c3d177178a761767b49278/card-numbers-by-reenhanced>


author: ewendenney
body: That extension is malware. Do *not* use it.