You’re correct that that is the effect of the attack, and Jirachi specifically prevents the placing of damage counters via an effect, not the dealing of damage via an effect. Doing X damage and placing X damage counters are distinct, separate mechanics.