public boolean add(K value) {
        put(value, 1);
        return true;
    }
Returns the number of key-weight pairs in this set.

@return the number of key-weight pairs in this set
document/src/main/java/com/yahoo/document/datatypes/WeightedSet.java