Generic Function
count-collection-items generic function returns the number of items in a collection. CAPI-INTERNALS
count-collection-items collection &optional representation
items-count-function. If representation is non-nil, it is used in place of theitems-representation in the choice. count-collection-items to return the number of items in a list panel.
(setq list (make-instance 'capi:list-panel
:items '(1 2 3 4 5)))
(capi:count-collection-items list)
(capi:count-collection-items list '(1 2))