Use pg_catalog.stv_tbl_perm to get more accurate row counts.