working counter button example