---
title: getCount
slug: campaign/docs/getcount-mailingws
docTags: 
createdAt: 2026-07-02T19:01:46.338Z
---

**Type**: int

**Parameters**

| Name        | Type   | Value                                                                          |
| ----------- | ------ | ------------------------------------------------------------------------------ |
| sessionId   | String | ID of the session                                                              |
| mailingType | String | Type of the mailing  (regular, event, confirmation, template, campaign, split) |

**Return values**

Number of all mailings of the given type

**Code structure**

```javascript
int getCount(String sessionId, String mailingType)
```
