Complete the size() function

The size() function should return the number of elements in the list, not including the dummy node.

Follow these steps:

  1. Edit List.cpp. You will edit List::size() near the bottom of the file.
  2. Write a while loop that traverses the linked list with a current pointer, like in other functions. Keep track of how many nodes have been visited with a counter, then return that counter.