code: def get_client_unread_messages_count(self, client_name=None):
          
          client = self._clients.get_with_name(client_name)[0]
          return client.get_messages_count_in_buffer()
docs: Gets count of unread messages from client