Counter target sorcery spell.
Delirium â€” If there are four or more card types among cards in your graveyard, search the graveyard, hand, and library of that spell's controller for any number of cards with the same name as that spell, exile those cards, then that player shuffles their library.
Steven Belledin INTERVIEW
The number of card types matters, not the number of cards. For example, Wicker Witch (an artifact creature) along with Catalog (an instant) and Chaplainâ€™s Blessing (a sorcery) will enable delirium.
The card types in Magic are artifact, creature, enchantment, instant, land, planeswalker, sorcery, and tribal (a card type that appears on some older cards). Supertypes (such as legendary and basic) and subtypes (such as Human and Equipment) are not counted.
Invasive Surgeryâ€™s delirium ability isnâ€™t checked until after the sorcery spell has been countered. If that spell is put into your graveyard, it will be counted.
In some rare cases, you can have a token or a copy of a spell in your graveyard at the moment that an objectâ€™s delirium ability counts the card types among cards in your graveyard, before that token or copy ceases to exist. Because tokens and copies of spells are not cards, even if they are copies of cards, their types will never be counted.
Because you consider only the characteristics of a double-faced cardâ€™s front face while itâ€™s not on the battlefield, the types of its back face wonâ€™t be counted for delirium.