code: func (p *Plan) ActionCounts() map[plans.Action]int {
  	ret := map[plans.Action]int{}
  	for _, r := range p.Resources {
  		ret[r.Action]++
  	}
  	return ret
  }
docs: // ActionCounts returns the number of diffs for each action type