Create countRotations

program to count no of times an array has been rotated.