The ListView_ColumnCount() function retrieves the total number of columns that have been added to a list view field.
ListView_ColumnCount(list_view_field)
• list_view_field – The list view field whose columns will be counted.
An integer containing the total number of columns that have been added to the list view field.