XMLAttributeList.Count

From Xojo Documentation

Property (As Integer )
aXMLAttributeList.Count = newIntegerValue
or
IntegerValue = aXMLAttributeList.Count

Supported for all project types and targets.

The number of attributes in the list.