---
title: numberOfItems
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsappleeventdescriptor/numberofitems
---

# numberOfItems

The number of descriptors in the receiver’s descriptor list.

## Declaration

```swift
var numberOfItems: Int { get }
```

## Discussion

Discussion The number of descriptors in the receiver’s descriptor list (possibly 0); returns 0 if an error occurs.

## See Also

### Getting Information About a Descriptor

- [aeDesc](foundation/nsappleeventdescriptor/aedesc.md)
- [booleanValue](foundation/nsappleeventdescriptor/booleanvalue.md)
- [coerce(toDescriptorType:)](foundation/nsappleeventdescriptor/coerce(todescriptortype:).md)
- [data](foundation/nsappleeventdescriptor/data.md)
- [descriptorType](foundation/nsappleeventdescriptor/descriptortype.md)
- [enumCodeValue](foundation/nsappleeventdescriptor/enumcodevalue.md)
- [int32Value](foundation/nsappleeventdescriptor/int32value.md)
- [stringValue](foundation/nsappleeventdescriptor/stringvalue.md)
- [typeCodeValue](foundation/nsappleeventdescriptor/typecodevalue.md)
