Bazaar of Wonders

When Bazaar of Wonders enters the battlefield, exile all graveyards.
Whenever a player casts a spell, counter it if a card with the same name is in a graveyard or a nontoken permanent with the same name is on the battlefield.