New instance
Get feedback
Construct a function that calculates the number of elements in a singly linked list.
LinkedList class implementation is given below.