Count

Description
Counts the number of times the pattern exists within the source string, returning either 0 for no matches, or the number of matches found.

Syntax
count

Parameters

 * source
 * any text
 * pattern
 * any string to search for one or more instances of within the source text

Examples
var sourcetext Hello World eval result count("%sourcetext","o") Result: 2