'Retrieve a list of all rooms'

def get_room_count(self):

    def f(txn):
        sql = 'SELECT    count(*)        FROM    rooms'
        txn.execute(sql)
        row = txn.fetchone()
        return (row[0] or 0)
    return self.runInteraction('get_rooms', f)
