# How to count occurrences for each values in an array?

**URL:** <https://community.glideapps.com/t/how-to-count-occurrences-for-each-values-in-an-array/58708>\
**Category:** Ask for Help\
**Created:** [March 3, 2023, 2:41am UTC](https://community.glideapps.com/t/how-to-count-occurrences-for-each-values-in-an-array/58708 "2023-03-03T02:41:59Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![gvalero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gvalero/32/1037_2.png) [@gvalero](https://community.glideapps.com/u/gvalero)\
**Post date:** [March 4, 2023, 12:18pm UTC](https://community.glideapps.com/t/how-to-count-occurrences-for-each-values-in-an-array/58708/10 "2023-03-04T12:18:53Z")

</div>

Well,

I usually take this way to solve this requirement (via JS):

> [@1234 Count duplicate elements in an array or list](https://community.glideapps.com/t/count-duplicate-elements-in-an-array-or-list/41313):
>
> Hola! This is not a feature request per se, instead, it is an easy solution to know how many times an element is in an array or list to use it later and create a ranking, a sorted list, etc. Glide has many array plugins but I don’t know why something like it is missing when I needed it (it’s the reason I created this small code). Maybe the Duplicated Items plugin is closest to get it but it’s not enough. Well, the case could be this: [image] and in order to know how many times a…

Saludos!

---

_[View the full topic](https://community.glideapps.com/t/how-to-count-occurrences-for-each-values-in-an-array/58708)._
