code: func (r *Resource) Count() (int, error) {
  	raw := r.RawCount.Value()
  	count, ok := r.RawCount.Value().(string)
  	if !ok {
  		return 0, fmt.Errorf(
  			"expected count to be a string or int, got %T", raw)
  	}
  
  	v, err := strconv.ParseInt(count, 0, 0)
  	if err != nil {
  		return 0, fmt.Errorf(
  			"cannot parse %q as an integer",
  			count,
  		)
  	}
  
  	return int(v), nil
  }
docs: // Count returns the count of this resource.