An option might be to count the number of tables in the metadata object for socorro.external.postgresql.models