          select count(*) as total
          from information_schema.tables
          where table_catalog = :table_catalog and table_type = 'BASE TABLE'
          and table_schema not in ('information_schema', 'pg_catalog')
