Find number of rotations on a SortedArray