string.countFields ("Run-of-the-mill", '-')
» 4
string.countFields ("Frontier scripters have more fun.", ' ')
» 13
In this example, extra spaces after "have" count; they delimit empty fields.
string.countFields (":Hard Disk:System Folder:System", ':')
» 4
When a delimiter is the first character in a string, the field preceding it is empty.
string.countFields ("Hard Disk:System Folder:Extensions:", ':')
» 3
When a delimiter is the last character in a string, the field following it is not counted.