This function returns the number of times one string occurs in another.  For example:

<<CountOf('.', IPAddress)>>

will count the number of times the character ‘.’ (full-stop or period) occurs in the data element IPAddress (and put the result into the merged document).

A more typical use of the function would be as part of a conditional statement, for example:

<<If(CountOf('.',Name) < 1)>>The name contains no initials.<<End()>>