Finds the index of the first entry containing the specified value.
If the value does not exist in the list, return the size of the list.
This should be similar to get() - you can use a reference variable
to store the address of the current list entry, and then loop through
the list by calling current.getNext().