Wrote a quick counter for permutation shifts