code: func recalculateCount(m *tree) {
  	count := 0
  	for _, t := range m.children {
  		count += t.Size()
  	}
  	m.count = count + 1 // add one to count ourself
  }
docs: // modifies a map by recalculating its key count based on the counts
  // of its subtrees