---
title: "numberOfStickers(in:)"
framework: messages
role: symbol
role_heading: Instance Method
path: "messages/msstickerbrowserviewdatasource/numberofstickers(in:)"
---

# numberOfStickers(in:)

Asks the data source for the number of stickers that the browser will display.

## Declaration

```swift
func numberOfStickers(in stickerBrowserView: MSStickerBrowserView) -> Int
```

## Parameters

- `stickerBrowserView`: The sticker browser view that displays these stickers.

## Return Value

Return Value The number of stickers. This must be a non-negative number.

## See Also

### Providing Stickers

- [stickerBrowserView(_:stickerAt:)](messages/msstickerbrowserviewdatasource/stickerbrowserview(_:stickerat:).md)
