# Count Property

> Returns the number of XMLElement objects in an XMLElements collection, all XML elements with a certain tag name, as a Long. Read only and run time only.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > XMLElements > Count Property
- **128 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/count-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/count-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/count-property/llms-full.txt

---

Returns the number of [XMLElement](https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelement/llms-full.txt) objects in the collection.

### Syntax

```vbscript
XMLElements.Count
```

### Data Types

Long.

### Limitations

Read only, run time only.

### See Also

- [Working with XML Files](https://docs.textcontrol.com/tx-text-control-activex/document-editor/xml/llms-full.txt)
- [XMLElements.Add Method](https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/add-method/llms-full.txt)
- [XMLElements.Item Method](https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/item-method/llms-full.txt)
- [Programming Category: XML Programming](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/xml/llms-full.txt)

---

## Nearby

- **Previous:** [Add Method](https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/add-method/llms-full.txt)
- **Next:** [InputItem Method](https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/inputitem-method/llms-full.txt)
