<!--
{
  "availability" : [
    "iOS: 7.1.0 - 14.0.0",
    "iPadOS: 7.1.0 - 14.0.0",
    "macCatalyst: 13.1.0 - 14.0.0",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "MediaPlayer",
  "identifier" : "/documentation/MediaPlayer/MPPlayableContentDataSource/numberOfChildItems(at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Media Player"
    ],
    "preciseIdentifier" : "c:objc(pl)MPPlayableContentDataSource(im)numberOfChildItemsAtIndexPath:"
  },
  "title" : "numberOfChildItems(at:)"
}
-->

# numberOfChildItems(at:)

Provides the number of child nodes for the indicated node.

```
func numberOfChildItems(at indexPath: IndexPath) -> Int
```

## Parameters

`indexPath`

The index for the node to be queried.

## Return Value

An <doc://com.apple.documentation/documentation/ObjectiveC/NSInteger> value representing the number of child nodes associated with the indicated node.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)