Structure and simulation results for bcd_counter