<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_categories_tree(context, template='zinnia/tags/categories_tree.html'):
 """ Return the categories as a tree. """

    return {'template': template,
            'categories': Category.objects.all().annotate(
                count_entries=Count('entries')),
            'context_category': context.get('category')}