def count_contributors_in_range(queryset, users, date_range):
    """Of the group ``users``, count how many made a contribution in ``date_range``."""
    start, end = date_range
    users = set(o.creator for o in
                queryset.filter(creator__in=users, created__gte=start, created__lt=end))
    return len(users)