code: final int getCount() {
          int count = 0;
          Attribute attr = this;
          while (attr != null) {
              count += 1;
              attr = attr.next;
          }
          return count;
      }
docs: Returns the length of the attribute list that begins with this attribute.
  
  @return the length of the attribute list that begins with this attribute.