def get_count(self, request, notifications, mark_as_read=False):
        """ return count of unread notification """
        return Response({'count': notifications.filter(is_read=False).count()})
def get_count ( self , request , notifications , mark_as_read = False ) : return Response ( { 'count' : notifications . filter ( is_read = False ) . count ( ) } )
return count of unread notification