public int size(){
  if (relations == null) {
    return 0;
  }
 else {
    return relations.size();
  }
}

public int size ( ) { if ( relations == null ) { return 0 ; } else { return relations . size ( ) ; } }
returns the number of relations in the relation set .
