This method of the Element interface retrieves the number of attributes.
public int numAttributes();
Returns the number of attributes.