The GetMarkedRecordCount() function in the syListObj form retrieves the number of rows marked for the list.
GetMarkedRecordCount(list_object)
• list_object – The list object composite that manages the state information for the list.
An integer containing the number of rows marked.