From the sessions ive been in and ran, the player/npc can make a arcana check to see if they know the spell. If they fail the check they can still use their reaction cast counterspell but they wont be able to tell what spell (an consequently what level to cast counterspell) is it a firebolt or meteor storm, who knows, want to risk casting it?
Imagine being rich enough to hire cleaners