This method of the ReadOnlyAttributes class retrieves the number of Attribute Name and value pairs that are currently in the collection.
public int size();
Returns the number of pairs in the collection.