Fix bug finding table count with multiple tables.