Criterion and Counting for Cyclically shift distinct q-ary GMW sequences of period qn-1