class_docstr: Counts the number of queries sent to Airflow Database in a given context.
  
  Does not support multiple processes. When a new process is started in context, its queries will
  not be included.
  
  :param print_fn: The function used to display the text. By default, ``builtins.print``
class_docstr_tok: ["Counts","the","number","of","queries","sent","to","Airflow","Database","in","a","given","context",".","Does","not","support","multiple","processes",".","When","a","new","process","is","started","in","context",",","its","queries","will","not","be","included",".",":","param","print_fn",":","The","function","used","to","display","the","text",".","By","default",",","``","builtins.print","``"]
docstr: Executed after cursor.
  
  :param conn:  connection
  :param cursor:  cursor
  :param statement: statement
  :param parameters: parameters
  :param context: context
  :param executemany: whether many statements executed
docstr_tok: ["Executed","after","cursor",".",":","param","conn",":","connection",":","param","cursor",":","cursor",":","param","statement",":","statement",":","param","parameters",":","parameters",":","param","context",":","context",":","param","executemany",":","whether","many","statements","executed"]
code: def after_cursor_execute(
      self,
      conn,
      cursor,
      statement,
      parameters,
      context,
      executemany,
  ):
      """
      Executed after cursor.
  
      :param conn:  connection
      :param cursor:  cursor
      :param statement: statement
      :param parameters: parameters
      :param context: context
      :param executemany: whether many statements executed
      """
      self.result.count += 1
  
file_path: airflow/tests/test_utils/perf/perf_kit/sqlalchemy.py
imports: from __future__ import annotations
  import os
  import time
  import traceback
  from typing import Callable
  from sqlalchemy import event
label_desc: Use image node_id 4 for calling the CountQueries obj's underlying member method code with example usage: obj.after_cursor_execute(conn, cursor, statement, parameters, context, executemany) without return types