Question: what is the difference between shift register and counter?
Answer: In a shift register, the input of element N is the output of element N-1, and all elements use the same clock. In a counter, the input of element N is the inverse of its output, and the clock of element N+1 is the output of element N.