<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSItemBadge-swift.struct/count(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "s:6AppKit11NSItemBadgeV5countyACSiFZ"
  },
  "title" : "count(_:)"
}
-->

# count(_:)

Creates a badge displaying a localized numerical count.

```
static func count(_ count: Int) -> NSItemBadge
```

## Parameters

`count`

The integer value to localize and display in the badge.

## Return Value

A new NSItemBadge instance with the localized specified count.

---

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)