Counts the number of tokens separated by a specified delimiter, for example a string containing "first:second:third" has three tokens delimited by ":". Similar to CountStringTokens except that this command accepts only a single character as the delimiter and recognises empty fields. For example "first:second::fourth" has four tokens with the third being an empty string.
integer CountStringTokens2( str, delimiter )