Function to return the count partitions possible from the given array such that the minimum element of any partition divides all the other elements of that partition
def countPartitions ( A , N ) : NEW_LINE