---
title: "emojiCount(for:)"
framework: sensorkit
role: symbol
role_heading: Instance Method
path: "sensorkit/srkeyboardmetrics/emojicount(for:)"
---

# emojiCount(for:)

Provides the number of typed emojis for the specified sentiment in the report.

## Declaration

```swift
func emojiCount(for category: SRKeyboardMetrics.SentimentCategory) -> Int
```

## Parameters

- `category`: An estimation of the user’s demeanor.

## Return Value

Return Value The total number of typed emojis for a sentiment.

## See Also

### Inferring Sentiment

- [wordCount(for:)](sensorkit/srkeyboardmetrics/wordcount(for:).md)
- [SRKeyboardMetrics.SentimentCategory](sensorkit/srkeyboardmetrics/sentimentcategory.md)
