Framework EDI Reference. Methods and Properties
ediScmDataElement.Count

Gets the number of sub elements that the composite element contains.

Syntax:

 Remarks

Only composite elements contain sub elements.  Simple data elements cannot contain sub elements and consequently will always return zero for this property.  The Count property is a good indicator of whether an element is a composite element or a simple data element.