internal virtual int CountWords(CharsRef chars)
{
int wordCount = 1;
int upto = chars.Offset;
int limit = chars.Offset + chars.Length;
while (upto < limit)
{
if (chars.Chars[upto++] == SynonymMap.WORD_SEPARATOR)
{
wordCount++;
}
}
return wordCount;
}