---
title: "readAttributeLeaderRoleCount(completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterthreadnetworkdiagnostics/readattributeleaderrolecount(completion:)"
---

# readAttributeLeaderRoleCount(completion:)

## Declaration

```swift
func readAttributeLeaderRoleCount(completion: @escaping @Sendable (NSNumber?, (any Error)?) -> Void)
```

```swift
func readAttributeLeaderRoleCount() async throws -> NSNumber
```
