The Database > rows count property holds the number of records:

To activate or deactivate a widget, you can use a Set interactive action with a rows count argument. 0 disables the widget, any number other than 0 enables it.
See the example rows_count.pma (19.3 KB)
