Doable - doesn't even need counterspelling: Mana Barrier with a Detect Magic spell as an advanced trigger. Instead of rolling resistance dice this will take away dice one on one from the enemy caster (with the added benefit that the barrier will protect you for longer than one attempt)
Downside for the trigger: It works only on anchors, so you'd have to ward your home with it.