# String Count

> Kalipso Studio 6.1 documentation · https://doc.sysdevmobile.com/kalipso/6.1/documentation/expressions/functions/string-functions/string-count
>
> StringCount returns how many times a substring occurs inside a string, or 0 when it does not occur.

This Function returns a _\<numeric>_, which is the number of occurrences of **String to Count** inside the **Source string**.

### Parameters

* **Source string** _\<string> -_ String from where the value will be retrieved.
* **String to Count** _\<string> -_ String to count occurrences inside Source string.

### Examples

* _Example 1_

StringCount("Kalipso is great. I enjoy Kalipso.", "Kalipso")\
**Result** = 2

* _Example 2_

StringCount("Kalipso is great. I enjoy Kalipso.", "XPTO")\
**Result** = 0
