The getCount method returns the number of elements in the list.
Public
int getCount() const
The number of elements in the list