def get_n_rooms(self):
        try:
            return len(self.db.request("GET", ("/%s_rooms/_design/by_msg_count/"
                "_view/by_msg_count/") % self.couchdb_prefix)["rows"])
        except __HOLE__:
            return 0
dataset/ETHPy150Open sfstpala/Victory-Chat/modules/chat.py/ChatMixIn.get_n_rooms