Anticognition

Anti-cognition (Anticognition) (fr)

Instant (CMC 2)
Counter target creature or planeswalker spell unless its controller pays . If an opponent has eight or more cards in their graveyard, instead counter that spell, then scry 2.