---
title: reasoningTokenCount
framework: foundationmodels
role: symbol
role_heading: Instance Property
path: foundationmodels/languagemodelsession/usage-swift.struct/output-swift.struct/reasoningtokencount
---

# reasoningTokenCount

The number of output tokens that were part of the model’s reasoning output.

## Declaration

```swift
var reasoningTokenCount: Int
```

## Discussion

Discussion This value will always be less than or equal to totalTokenCount. A non-zero value requires the model to declare the reasoning capability.

## See Also

### Getting the token count

- [totalTokenCount](foundationmodels/languagemodelsession/usage-swift.struct/output-swift.struct/totaltokencount.md)
