public int Frequency(string word) { CheckWord(word); var node = Root.Search(word.Trim(), 0); return node.IsNull() ? 0 : node.Frequency; }