does Ravenbloom student effect trigger if the spell gets countered?

No, Ravenbloom Student's ability does not trigger if the spell you play is countered.

According to Rule 425.1.b, a card that is countered is not considered to have been played. Because Ravenbloom Student's ability triggers "When you play a spell," and a spell is only considered "played" once it successfully resolves, a countered spell fails to meet the condition required to trigger the ability.

This is supported by multiple Riftbound FAQs (such as FAQ #2497, #8694, and #2377), which clarify that countering a spell prevents it from being considered "played" for the purposes of triggered abilities.

Sequence of events:

  1. You cast a spell (it enters the chain).
  2. Your opponent plays a card to Counter your spell (e.g., Defy).
  3. The Counter effect resolves, negating your spell.
  4. Because your spell was countered, it does not resolve.
  5. Since the spell did not resolve, it is not considered "played," and Ravenbloom Student's ability does not trigger.