<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSSpeechSynthesizer/SpeechPropertyKey/ErrorKey/count",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSSpeechErrorCount"
  },
  "title" : "count"
}
-->

# count

The number of errors that have occurred in processing the current text string, since the last call to [`object(forProperty:)`](/documentation/AppKit/NSSpeechSynthesizer/object(forProperty:)) with the [`errors`](/documentation/AppKit/NSSpeechSynthesizer/SpeechPropertyKey/errors) property.  An `NSNumber`

```
static let count: NSSpeechSynthesizer.SpeechPropertyKey.ErrorKey
```

## Discussion

Using the [`oldestCode`](/documentation/AppKit/NSSpeechSynthesizer/SpeechPropertyKey/ErrorKey/oldestCode) keys and the [`newestCode`](/documentation/AppKit/NSSpeechSynthesizer/SpeechPropertyKey/ErrorKey/newestCode) keys, you can get information about the oldest and most recent errors that occurred since the last call to [`object(forProperty:)`](/documentation/AppKit/NSSpeechSynthesizer/object(forProperty:)), but you cannot get information about any intervening errors.

---

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)