---
title: "count(_:)"
framework: uikit
role: symbol
role_heading: Type Method
path: "uikit/uibarbuttonitem/badge-swift.struct/count(_:)"
---

# count(_:)

## Declaration

```swift
@MainActor static func count(_ count: Int) -> UIBarButtonItem.Badge
```
