added process of counting trigram