Showing counter in button, hiding modal on click