getSize () {
    let total = 1
    for (const c in this.dictionary) {
      total += this.dictionary[c].getSize()
    }
    return total
  }
Computes the number of actual nodes from this node to the end.
Note: This involves traversing the entire structure and may not be
good for frequent use.