The output sequence is:
0,1,0,2,0,3
and then it repeats.
Although only the values 0, 1, 2 and 3 appear, the state corresponding to output 0 must occur in different positions of the cycle because it is followed by different next outputs: 1, 2 and 3.
So the counter requires 6 distinct states in the cycle.
The number of flip-flops required for 6 states is:
⌈log26⌉=3.
Therefore, the minimum required number of J-K flip-flops is 3.
The official accepted range is 3 to 4.