docs: def count_entries(self, table=None):
          """How many rows in a table."""
          if table is None: table = self.main_table
          self.own_cursor.execute('SELECT COUNT(1) FROM "%s";' % table)
          return int(self.own_cursor.fetchone()[0])