module updown_mod7(up, count, clk, rst);
    input up, clk, rst;
    output [2:0] count;
