GraphQL count total number of orders

I am using the orders query to fetch orders. How is it possible to count the total number of orders I have. I am using this query
query {
orders(warehouse_id: “V2FyZWhvdXNlOjExNzkw”) {
request_id
complexity
data(first: 10) {
edges {
node {
id
legacy_id
order_number
partner_order_id
shop_name
fulfillment_status
order_date
total_tax
subtotal
total_discounts
total_price
auto_print_return_label
custom_invoice_url
account_id
email
profile
packing_note
required_ship_date
flagged
saturday_delivery
ignore_address_validation_errors
priority_flag
source
third_party_shipper {
zip
account_number
country
}

      gift_invoice
      order_history {
        created_at
        information
        user_id
      }
      allow_partial
      require_signature
      adult_signature_required
      alcohol
      expected_weight_in_oz
      insurance
      insurance_amount
      currency
      has_dry_ice
      allocation_priority
      allow_split
      line_items(first: 10) {
        edges {
          node {
            sku
            quantity
            quantity_allocated
            quantity_pending_fulfillment
            backorder_quantity
            promotion_discount
          }
        }
      }
    }
  }
}

}
}

Now this, for example, displays the first 10 order details. But my aim is to find the total count of all the orders (number of current months, years orders) Thanks in advance.

Hi @vikram!
You won’t be able to know that number beforehand, for that you will need to iterate over the results using Pagination

data {
      pageInfo {
        hasNextPage
        hasPreviousPage
        startCursor
        endCursor
      }

Until there is hasNextPage:false for the criteria you are using to filter.
Please let us know if there is anything else we could help with.
Thanks in advance!
Tom