{% load category_tags %}
<li><a href="{{ object.node|get_category_url }}" class="{% if selected %}selected{% endif %}">{{ object.node.name }} ({{ object.node|category_count }})</a>
{% if subtree %}
<ul {% if open %}class="open"{% endif %}>
	{{ subtree }}
</ul>
{% endif %}
</li>