About finding the no. of occurences of a pattern in a trie

i didn’t understand how to do it and also how to point out the indices where the pattern has matched with some substring of the text.