code: public int getSize() {
          int ret = 0;
          MethodState state = firstPointer;
          while (state != null) {
              ret++;
              state = state.getNext();
          }
          return ret;
      }
docs: Do not use -- for internal use only. For testing.
  @return n/a