I have a method if the sheet names all follow a specific pattern (such as "Sheet " followed by a number) and all sheets have a table of the same name (such as Table 1).

Table 2 (only required on one sheet) checks for the presence of cell Table 1::A1 on each sheet. It should have as many rows as needed to capture all the sheet names you expect to have plus one extra row that is the header. The header contains the answer.
A1 = COUNTIF(A,"A1")
A2 =IFERROR(REFERENCE.NAME(INDIRECT("Sheet "&ROW(cell)−1&"::Table 1::A1")),"")
Fill down to complete the column
"Table 2" could be on another sheet by itself rather than on an important sheet. If that sheet does not have a Table 1, it will not be included in the count.
If this method does not apply to your document, give us some more info on the naming convention you use for sheets and tables and maybe we can come up with something.