Find rotation count in rotated sorted array