Determine number of elements in a separated string.
Syntax: byte = CountFields( source as string, separator as string )
See also: NthField()
dim a as string a = "This | is | a | example!" print str(CountFields(a,"|") ' Result: 4