def METHOD_NAME(self, request, *args, **kwargs):
    """Returns the number of attachments the user has access to."""
    data = {"count": self.filter_queryset(self.get_queryset()).METHOD_NAME()}
    return Response(data=data)