Count posedge of frame clk