module updown_count4(up, count, clk, rst);
    input up, clk, rst;
    output [3:0] count;
