---
title: "Get the number of the resource"
method: GET
path: "/drives/{driveId}/root/children/$count"
tags: ["drives.driveItem"]
---

# Get the number of the resource

`GET /drives/{driveId}/root/children/$count`

## Request

- Base URL: `https://graph.microsoft.com/v1.0`
- URL: `https://graph.microsoft.com/v1.0/drives/{driveId}/root/children/$count`
- Auth: OAuth 2
  - Authorization code: `https://login.microsoftonline.com/common/oauth2/v2.0/authorize`
  - Token URL: `https://login.microsoftonline.com/common/oauth2/v2.0/token`

## Path parameters

- `driveId` string, required

## Query parameters

- `$search` string
- `$filter` string

## Response `2XX`

The count of the resource

## Other responses

- `default`: error

---

[API](https://skmtc.dev/ballerina-platform/apis/files.md) - [All operations](https://skmtc.dev/ballerina-platform/apis/files/llms.txt) - [OpenAPI document](https://skmtc.dev/ballerina-platform/apis/files/revisions/c34150e97737?raw)
