Accepting a counter offer is likely to damage your relationship with your current employer. After all, you've just told them you were leaving and are now only staying because they offered you more money. This might cause them to question your loyalty and whether you'll resign the second you receive a better offer.