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

# readAttributeRouterRoleCount(completionHandler:)

## Declaration

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

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