does Mirran Spy work if artifact spell is countered?
Yes.
Fluttershy is best pony.
To elaborate, casting a spell is the act of putting it onto the stack and paying its mana cost.