code: function(str, pos) {
      if (str.length == 0) {
        return 0;
      }
  
      var T = this, k, child, ret = 0;
  
      if (pos === undefined) {
        pos = 0;
      }
      if (pos === str.length) {
        return T.words;
      }
      k = str[pos];
      child = T.children[k];
      if (child !== undefined) {
        //node exists
        ret = child.countWord(str, pos + 1);
      }
      return ret;
    }
docs: /*
  Count the number of times a given word has been inserted into the dictionary
  
  @method countWord
  @param {String} str Word to get count of
  @param {Integer} pos Current index of the given word
  @return {Integer} The number of times a given word exists in the dictionary