A twisted ring counter, also known as a Johnson counter, connects the complement output of the last flip-flop to the input of the first flip-flop, and the output of each stage is connected to the input of the next. This configuration results in a unique counting sequence.