Zhangzj is the emperor of Yali empire and is esteemed by his people.
"Long live Zhangzj" is heard across the country. Needless to say, people in the empire hope their leader will live forever. However, everybody will die, unless others donate their lives to the person.
In the empire, there's a special way to donate life. There are some fixed words that are called exciting. Whenever someone speaks an exciting word, he automatically donates one second of his life to Zhangzj. For example, "toad" and "river" are exciting. Then, if somebody says the sequence of words "a", "toad", "jumps", "into", "the", "toad", "river", they donate three seconds to Zhangzj.
Given a String speech containing all the words someone says, and a String words containing all exciting words, return the number of seconds the speaker will donate to Zhangzj.
A word may appear multiple times in speech, but not in words.