List and Tree exercises.
compute number of elements in a list