def do_print_inbox_count(parser, token):
    bits = token.contents.split()
    if len(bits) > 1:
        if len(bits) != 3:
            raise TemplateSyntaxError, "inbox_count tag takes either no arguments or exactly two arguments"
        if bits[1] != 'as':
            raise TemplateSyntaxError, "first argument to inbox_count tag must be 'as'"
        return InboxOutput(bits[2])
    else:
        return InboxOutput()
Currently unimplemented due to complexity of perserving this behavior
dataset/ETHPy150Open amarandon/smeuhsocial/apps/messages/templatetags/inbox.py/do_print_inbox_count--crossover with--dataset/ETHPy150Open gmr/mredis/mredis/client.py/MRedis.blpop