code: public int size() {
          switch(getType()) {
              case POINT: return 1;
              case CIRCLE: return 1;
              case BOX: return 2;
              case POLYGON: return coordinates[0].length;
              default: throw new IllegalStateException("Unrecognized type: " + getType());
          }
      }
docs: Returns the number of points comprising this geoshape. A point and circle have only one point (center of cricle),
  a box has two points (the south-west and north-east corners) and a polygon has a variable number of points (>=3).
  
  @return