Given strings representing genes, determine how many unique sequences there are, accounting for rotations. For example, given AAG, GAA, and CAA, there are two unique sequences, because GAA can be rotated to AAG.