protected function count($builder)
    {
        $read = NotificationsStackRead::select(['stack_id'])->withTrashed()->where('user_id', user()->id)->pluck('stack_id');
        return $builder->whereNotIn('id', $read)->count();
    }