You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: postgres.rs
    path of file: ./repos/prisma-engines/schema-engine/connectors/sql-schema-connector/src/sql_destructive_change_checker/destructive_change_checker_flavour
    
    the code of the file until where you have to start completion: use super::DestructiveChangeCheckerFlavour;
use crate::{
    flavour::{PostgresFlavour, SqlFlavour},
    migration_pair::MigrationPair,
    sql_destructive_change_checker::{
        check::{Column, Table},
        destructive_check_plan::DestructiveCheckPlan,
        unexecutable_step_check::UnexecutableStepCheck,
        warning_check::SqlMigrationWarningCheck,
    },
    sql_migration::{AlterColum
    
    fn count_rows_in_table<'a>(&'a mut self, table: &'a Table) -> BoxFuture<'a, ConnectorResult<i64>> {
        Box::pin(async move {
            let from = match &table.namespace {
                Some(namespace) => format!("\"{}\".\"{}\"", namespace, table.table),
                None => format!("\"{}\"", table.table),
            };
            let query = format!("SELECT COUNT(*) FROM {from}");
            let result_set = self.query_raw(&query, &[]).await?;
            super::extract_table_rows_count(table, result_set)
        })
    }