# CountTokensResponse

# CountTokensResponse


```
data class CountTokensResponse
```

<br />

*** ** * ** ***

Data class holding token count information.

## Summary

| ### Public constructors |
|---|
| `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/prompt/CountTokensResponse#CountTokensResponse(kotlin.Int)(totalTokens: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/prompt/CountTokensResponse#totalTokens()` total number of tokens calculated. |

## Public constructors

### CountTokensResponse

```
CountTokensResponse(totalTokens: Int)
```

## Public properties

### totalTokens

```
val totalTokens: Int
```

total number of tokens calculated.