---
title: granularityCount
framework: browserenginekit
role: symbol
role_heading: Instance Property
path: browserenginekit/betextdocumentrequest/granularitycount
---

# granularityCount

A count of granularity units that defines the scope of the document request.

## Declaration

```swift
var granularityCount: Int { get set }
```

## Discussion

Discussion Use this value with surroundingGranularity to determine the extent of the text context that the system requests.

## See Also

### Scoping the document request

- [surroundingGranularity](browserenginekit/betextdocumentrequest/surroundinggranularity.md)
