added deterministic sort for template statistics (Counter.most_common() will not break ties consistently in different python versions)
added deterministic sort for template statistics (Counter.most_common() will not break ties consistently in different python versions)

nltk/nltk,nltk/nltk,nltk/nltk