Changed SentenceSimilarityCount to work with updated workflow and to remove templates using heuristic score