---
title: "count(where:)"
framework: swift-package-manager
role: symbol
role_heading: Instance Method
path: "swift-package-manager/documentation/packageplugin/pathlist/count(where:)"
---

# count(where:)

Inherited from Sequence.count(where:).

## Declaration

```swift
func count<E>(where predicate: (Self.Element) throws(E) -> Bool) throws(E) -> Int where E : Error
```
