public int size() {
    return properties.size();
  }
The Serialization method.

@param out the output stream
@throws IOException if IO fail
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/properties/PropertyMap.java