code: func LenList(list runtime.Object) int {
  	itemsPtr, err := GetItemsPtr(list)
  	if err != nil {
  		return 0
  	}
  	items, err := conversion.EnforcePtr(itemsPtr)
  	if err != nil {
  		return 0
  	}
  	return items.Len()
  }
docs: // LenList returns the length of this list or 0 if it is not a list.