Context:
When querying dag runs in the stable API, it is possible to filter by date range and to receive paginated results. Pagination returns a subset of results, but a count of all available results is returned.

Expected behavior:
The total count should take place after filtering by date, and before paginating results.

Actual behavior:
The count is made prior to filtering by date. This means that the total number of accessible dags is returned, rather than the number of dags the user filtered for.

https://github.com/apache/airflow/pull/10594/files/1fe1da978763c9919cee0d2c7eccd96438631993#diff-3239f89a092764597348cabc5e74c2f5R125

I will make this change after #10594 is merged.
airflow/api_connexion/endpoints/dag_run_endpoint.py
#
#
from connexion import NoContent
from flask import g, request, current_app
from marshmallow import ValidationError
from airflow.api_connexion import security
from airflow.api_connexion.exceptions import AlreadyExists, BadRequest, NotFound
from airflow.api_connexion.parameters import check_limit, format_datetime, format_parameters
from airflow.api_connexion.schemas.dag_run_schema import (
    DAGRunCollection,
    dagrun_collection_schema,
    dagrun_schema,
    dagruns_batch_form_schema,
)
from airflow.models import DagModel, DagRun
from airflow.security import permissions
from airflow.utils.session import provide_session
from airflow.utils.types import DagRunType
@security.requires_access(
    [
        (permissions.ACTION_CAN_READ, permissions.RESOURCE_DAGS),
        (permissions.ACTION_CAN_DELETE, permissions.RESOURCE_DAG_RUN),
    ]
)
@provide_session
def delete_dag_run(dag_id, dag_run_id, session):