added count_trigrams functions to src folder