Model the given circuit as two cascaded positive-edge-triggered D flip-flops. Let the state be the pair of flip-flop outputs. Derive the next-state equation and count how many states can return to themselves for at least one value of the input.
The circuit is a two-bit shift register with next-state equation \((Q_L^+,Q_R^+)=(\text{in}, Q_L)\). Enumerating all four states shows exactly two states, 00 and 11, have a transition back to themselves for some input: 00 on input 0, and 11 on input 1. Therefore the required number is 2.