Hex Permutation Counter