---
title: "count(_:)"
framework: appkit
role: symbol
role_heading: Type Method
path: "appkit/nsitembadge-swift.struct/count(_:)"
---

# count(_:)

Creates a badge displaying a localized numerical count.

## Declaration

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

## Parameters

- `count`: The integer value to localize and display in the badge.

## Return Value

Return Value A new NSItemBadge instance with the localized specified count.
