parameters: (**kwargs)
docstring: Gets number of indexes in the database
  
      Kwargs:
          db: global database instance
          redis: global redis instance
docstring_summary: Gets number of indexes in the database
docstring_tokens: Gets number of indexes in the database
function: def get_database_index_count(**kwargs):
      """
      Gets number of indexes in the database
  
      Kwargs:
          db: global database instance
          redis: global redis instance
      """
      db = kwargs["db"]
      with db.scoped_session() as session:
          q = sqlalchemy.text(
              "SELECT COUNT(*) FROM pg_indexes WHERE schemaname = 'public'"
          )
          res = session.execute(q).fetchone()[0]
          return res
function_tokens: def get_database_index_count ( * * kwargs ) : db = kwargs [ "db" ] with db . scoped_session ( ) as session : q = sqlalchemy . text ( "SELECT COUNT(*) FROM pg_indexes WHERE schemaname = 'public'" ) res = session . execute ( q ) . fetchone ( ) [ 0 ] return res