Tying button clicks to counter