---
title: "init(totalTokenCount:reasoningTokenCount:)"
framework: foundationmodels
role: symbol
role_heading: Initializer
path: "foundationmodels/languagemodelsession/usage-swift.struct/output-swift.struct/init(totaltokencount:reasoningtokencount:)"
---

# init(totalTokenCount:reasoningTokenCount:)

Creates an output token count.

## Declaration

```swift
init(totalTokenCount: Int, reasoningTokenCount: Int)
```

## Parameters

- `totalTokenCount`: The total number of output tokens.
- `reasoningTokenCount`: The number of output tokens from reasoning.
