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
static int countPartitions ( int [ ] A , int N ) {