limit the total number of shown tables to MAX_TABLES