bcd up/down counter