code: public static int size(Object list) {
          if (list == null)
              return 0;
          if (list instanceof List)
              return ((List<?>) list).size();
          return 1;
      }
docs: The size of a lazy List
  
  @param list A LazyList returned from LazyList.add(Object) or null
  @return the size of the list.