add counter for OK button