added counter to keep track of permutations and for readability

Just added a counter to number permutations. Used for readability now. Could also be used to keep track of permutations for later reference, i.e., "print all the permutations with a short span > 4." Probably need to start an array. Planned that but ran out of time!