The rules for counterspells say this, if you pull off all the requirements:
Now, most often the counterspell is the same as the attack spell. But there is the option to use dispel magic, or anything in the same school with the Improved Counterspell feat. In which case the attack spell & the...