code: public int size() {
          int ele, count;
  
          count = 0;
          for (ele = first(); ele != -1; ele = next(ele)) {
              count++;
          }
          return count;
      }
docs: Counts the elements.
  @return  number of elements in this set