def METHOD_NAME(self, qs, value):
    """Filter for given most frequently used tasks.
    Most frequently used tasks are only counted within last
    few months as older tasks are not relevant anymore
    for today's usage.
    :param QuerySet qs: The queryset to filter
    :param int   value: number of most frequent items
    :return:            The filtered queryset
    :rtype:             QuerySet
    """
    if value in EMPTY_VALUES:
        return qs
    user = self.parent.request.user
    from_date = date.today() - timedelta(days=60)
    qs = qs.METHOD_NAME(
        reports__user=user,
        reports__date__gt=from_date,
        archived=False,
        project__archived=False,
    )
    qs = qs.annotate(frequency=Count("reports")).order_by("-frequency")
    # limit number of results to given value
    qs = qs[: int(value)]
    return qs