Returns the number of items in the specified section.
- macOS 10.11+
The index of the section whose item count you want. This index is 0-based.
The number of items in the section.
Use this method to get the number of items currently displayed by the collection view for the specified section. Do not call the methods of the data source to get this information.