<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreSpotlight",
  "identifier" : "/documentation/CoreSpotlight/SearchCount",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core Spotlight",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:31_CoreSpotlight_FoundationModels11SearchCountV"
  },
  "title" : "SearchCount"
}
-->

# SearchCount

A scalar count result (e.g., “47 emails from John”).

```
struct SearchCount
```

## Topics

### Creating the search count

[`init(value: Int, header: String?)`](/documentation/CoreSpotlight/SearchCount/init(value:header:))

### Getting the counted information

[`let header: String?`](/documentation/CoreSpotlight/SearchCount/header)

A short description of what was counted (e.g., “Emails from John since 2003”).

[`let value: Int`](/documentation/CoreSpotlight/SearchCount/value)

The count value.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)