Count Nice Permutations with GCD Condition