The ListView_SelectionCount() function retrieves the number of items currently selected in a list view field.
ListView_SelectionCount(list_view_field)
• list_view_field – The list view field for which the selection count is being returned.
A long integer containing the number of items that are selected.