code: 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()
docs: A templatetag to show the unread-count for a logged in user.
      Returns the number of unread messages in the user's inbox.
      Usage::
  
          {% load inbox %}
          {% inbox_count %}
  
          {# or assign the value to a variable: #}
  
          {% inbox_count as my_var %}
          {{ my_var }}