---
title: foundItemCount
framework: corespotlight
role: symbol
role_heading: Instance Property
path: corespotlight/cssearchquery/founditemcount
---

# foundItemCount

The number of matching items found for the given query string.

## Declaration

```swift
var foundItemCount: Int { get }
```

## Discussion

Discussion As Spotlight finds matches to the query string, it updates the value of this property and delivers the new results to the handler in the foundItemsHandler property. This value reflects the total number of matching items, including the number of items the query delivered to your handler block previously.

## See Also

### Executing the query with handler blocks

- [start()](corespotlight/cssearchquery/start().md)
- [cancel()](corespotlight/cssearchquery/cancel().md)
- [isCancelled](corespotlight/cssearchquery/iscancelled.md)
- [foundItemsHandler](corespotlight/cssearchquery/founditemshandler.md)
- [completionHandler](corespotlight/cssearchquery/completionhandler.md)
