public int size() {
        return metadata.size();
    }
Returns the number of metadata names in this metadata.

@return number of metadata names
tika-core/src/main/java/org/apache/tika/metadata/Metadata.java