It is good that you turned down the counter-offer. Never accept counter-offers. If you accept one, sure it may look tempting, but now they know you're dissatisfied and will never trust you again. One way or another you'll find yourself gone within 6 months, under worse circumstances than if you'd left immediately.