<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SensorKit",
  "identifier" : "/documentation/SensorKit/SRKeyboardMetrics/emojiCount(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SensorKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SRKeyboardMetrics(im)emojiCountForSentimentCategory:"
  },
  "title" : "emojiCount(for:)"
}
-->

# emojiCount(for:)

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

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

## Parameters

`category`

An estimation of the user’s demeanor.

## Return Value

The total number of typed emojis for a sentiment.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)