# DrawingCollection.count Property

> DrawingCollection.count property in the TX Sheet Control TypeScript API for Node.js, with its type number and a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > DrawingCollection > DrawingCollection.count Property
- **390 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/drawingcollection/count-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/drawingcollection/count-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/drawingcollection/count-property/llms-full.txt

---

The count value of DrawingCollection.

Owner: [DrawingCollection](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/drawingcollection/llms-full.txt). Package: `@txtextcontrol/tx-sheet-control-server`. Version: **2.0.0**.

### Syntax

```typescript
readonly count: number
```

Read through the owning object: `owner.count`. Follow the declared mutability and owning object lifetime.

### Examples

Use a fresh sample workbook for this example. In the browser pass editor.workbook; in Node.js pass the server control. Document-bound objects are obtained from that same owner.

```typescript
import type { ServerSheetControl } from '@txtextcontrol/tx-sheet-control-server';

function readReportDrawingCollectionCount(control: ServerSheetControl) {
    const book = control.workbook;
    const drawingCollection = book.sheets.at(0).drawings;

    const value = drawingCollection['count'];
    return ['DrawingCollection.count', value];
}
```

### Remarks

Use this member on an object from the current document. Reacquire document-bound handles after replacement/deletion. Validate arguments against the declared types and documented bounds; handle exceptions or rejected promises.

### See Also

- [DrawingCollection Class](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/drawingcollection/llms-full.txt)
- [Pictures and Shapes](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/pictures-shapes/llms-full.txt)

---

## Nearby

- **Previous:** [DrawingCollection.at Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/drawingcollection/at-method/llms-full.txt)
- **Next:** [DrawingCollection.get Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/drawingcollection/get-method/llms-full.txt)
