# \#count

**URL:** https://discourse.julialang.org/tag/count/895.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Add varargs methods of \`any\`, \`all\`, and \`count\`](https://discourse.julialang.org/t/add-varargs-methods-of-any-all-and-count/95072)

<div class="topic-metadata">

**Author:** [@uniment](https://discourse.julialang.org/u/uniment)\
**Replies:** 26\
**Last updated:** [February 26, 2023, 7:10am UTC](https://discourse.julialang.org/t/add-varargs-methods-of-any-all-and-count/95072 "2023-02-26T07:10:26Z")

</div>

It would be helpful to have variable-length methods of any, all, and count for comparing collections, so that e.g. you could write this: all(≡, \[1,2,3\], \[1,2,3\]) # true count(≥, (3,2,1), 1:3) # 2 Proof of concept: Bas…

---

## [Count occurances for matrix rows (where column order does not matter)](https://discourse.julialang.org/t/count-occurances-for-matrix-rows-where-column-order-does-not-matter/91374)

<div class="topic-metadata">

**Author:** [@KevinMoerman](https://discourse.julialang.org/u/KevinMoerman)\
**Replies:** 30\
**Last updated:** [December 13, 2022, 11:18am UTC](https://discourse.julialang.org/t/count-occurances-for-matrix-rows-where-column-order-does-not-matter/91374 "2022-12-13T11:18:53Z")

</div>

I would like to detect rows in a matrix which only occur once, also the column order does not matter. This relates to this discussion. I have implemented several options (see below), and all work (note though I am a Jul…

---

## [Count various patterns simultaneously](https://discourse.julialang.org/t/count-various-patterns-simultaneously/73066)

<div class="topic-metadata">

**Author:** [@ludwig-austermann](https://discourse.julialang.org/u/ludwig-austermann)\
**Replies:** 5\
**Last updated:** [December 14, 2021, 1:34pm UTC](https://discourse.julialang.org/t/count-various-patterns-simultaneously/73066 "2021-12-14T13:34:10Z")

</div>

I was just wondering if there is a nicer way to do practically this: reduce( (d, c) -\> (d\[c\] = get(d, c, 0) + 1; d), "ACCACD", init=Dict{Char, Int}() ) hence, to do a non-binary count s = "ACCACD" Dict( c =\> c…
