Guttersnipe will trigger before a spell can be countered, once the spell has been cast (putting it on the stack .. paying it cost) guttersnipe will trigger before anyone will get priority to have a chance to counter. If the spell is countered before the trigger resolves, it won't matter and they will take the 2 damage from guttersnipe.
Guttersnipe question