Let us change our traditional attitude to the construction of programs. Instead of imagining that our main task is to instruct a computer what to to, let us concentrate rather on explaining to human beings what we want a computer to do. Donald Knuth
Write a program to count the number of elements in the linked list.
List of Array items: [12, 12, 14, 16, 16] Number 16 count 2 Number 12 count 2 Number 14 count 1