Added count of non-template sentences to template scoring code