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

# readAttributeRouterRoleCount(completion:)

## Declaration

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

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