If a spell is countered, does it still count to draw with Ezreal legend?

Yes, your Ezreal legend ability can still be activated if the spells you played were countered.

According to RiftJudge FAQ #8979 and RiftJudge FAQ #92, the requirement for Ezreal's legend ability is satisfied the moment you choose the targets for your spells and place them on the chain. Because the act of choosing targets occurs when the spell is played (finalized on the chain), the condition for the legend ability is met at that time, regardless of whether the spell subsequently resolves or is countered by a card like Defy.

The Sequence

  1. Playing the Spell: You play a spell and choose an enemy unit/gear as the target. This choice is locked in as the spell finalizes on the chain.
  2. Reacting: Your opponent plays Defy (or another counter effect) to counter your spell.
  3. Resolution: The counter resolves, and your spell is cleared from the chain (per Rule 425.1.a).
  4. Activation: Even though the spell did not resolve, you have successfully "chosen enemy units and/or gear" with a spell this turn. You may now exhaust your Ezreal legend to activate its ability and draw a card.

Note: This is based on established RiftJudge FAQs regarding targeting and counter interactions. While a countered card is not considered to have been "played" for effects that require successful resolution (like Viktor, Innovator), the act of targeting is completed as soon as the spell is finalized on the chain.