Increment Input on Clock Cycle
Below is a basic loadable counter; it increments the value of the register, and selects whether to store this or the new Input using Load.  This all happens ahead of CLK, which simply saves the result.



simulate this circuit &ndash; Schematic created using CircuitLab
It seems that you want the input to be saved automatically (e.g. on change).  This could be accomplished with another layer of logic that determines the Load input.