SELECT count(*) AS ntables FROM pg_stat_user_tables;
