406.4. Some Abilities trigger when cards are played or otherwise check whether cards have been played.
406.4.a. These abilities trigger when the act of playing the card has been completed by the resolution of the card.
406.4.b. If a game effect prevents the resolution of the card—for example, because the card was countered —the card wasn't played and no abilities that trigger on playing cards trigger. See rule 412. Counter for more information.