---
title: itemCount
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsmenuitembadge/itemcount
---

# itemCount

The number of items the badge displays.

## Declaration

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

## Discussion

Discussion If you create a badge with a custom string, this value is 0.

## See Also

### Accessing menu item badge attributes

- [stringValue](appkit/nsmenuitembadge/stringvalue-fc9f.md)
- [type](appkit/nsmenuitembadge/type.md)
