# \`count(where:)\` on Sequence

**URL:** <https://forums.swift.org/t/count-where-on-sequence/11186>\
**Category:** Pitches\
**Tags:** collection\
**Created:** [March 20, 2018, 2:17pm UTC](https://forums.swift.org/t/count-where-on-sequence/11186 "2018-03-20T14:17:41Z")\
**Posts on this page:** 1\
**Showing post:** 36

<div class="post-metadata">

**Author:** ![Chris\_Lattner3](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/chris_lattner3/32/348_2.png) [@Chris\_Lattner3](https://forums.swift.org/u/Chris_Lattner3)\
**Post date:** [April 1, 2018, 12:08am UTC](https://forums.swift.org/t/count-where-on-sequence/11186/36 "2018-04-01T00:08:04Z")

</div>

> [@soroush](#):
>
> I’d like to pitch one today: count(where:), which counts the number of objects in a Sequence that passes some test.

+1 to filling in obvious missing functionality, thanks @soroush!

-Chris

---

_[View the full topic](https://forums.swift.org/t/count-where-on-sequence/11186)._
