pub async fn count_workflow_steps_with_scope( pool: &DbPool, scope: WorkflowRunReadScope, workflow_run_id: Uuid, ) -> Result<i64>
Counts workflow steps within an explicit read-visibility scope.