code: def count(self):
          
          cursor = self.conn.cursor()
          with contextlib.closing(cursor):
              cursor.execute('SELECT COUNT(*) FROM events')
              res = cursor.fetchone()
              return res[0]
docs: Return the number of events in the db.