count function

float count(inputString, matchString)

inputString string

matchString string

Returns the number of matches of the matchString in the inputString.

Related

Examples

count("cityengine", "e")
# result = 2

count("cityengine rocks my world; cityengine should rock yours too", "cityengine")
# result = 2