'Published the count via pubsub
:param count: the count to publish'

def publish_count(self, count):

    count_dict = dict(unread_count=count, unseen_count=count)
    count_data = json.dumps(count_dict)
    data = {'channel': self.pubsub_key, 'data': count_data}
    encoded_data = json.dumps(data)
    self.redis.publish(self.pubsub_main_channel, encoded_data)
