(Available since version 1.0)
LinkedList::count — Counts the number of elements in the singly linked list.
This function has no parameters.
Returns the number of elements in the singly linked list.