{"trustable":true,"sections":[{"title":"题目描述","value":{"format":"MD","content":"**原题来自:[HDU 2222](http://acm.hdu.edu.cn/showproblem.php?pid\u003d2222)**\r\n\r\n给定 $n$ 个长度不超过 $50$ 的由小写英文字母组成的单词准备查询,以及一篇长为 $m$ 的文章,问:文中出现了多少个待查询的单词。多组数据。"}},{"title":"输入格式","value":{"format":"MD","content":"第一行一个整数 $T$,表示数据组数; \r\n对于每组数据,第一行一个整数 $n$,接下去 $n$ 行表示 $n$ 个单词,最后一行输入一个字符串,表示文章。"}},{"title":"输出格式","value":{"format":"MD","content":"对于每组数据,输出一个数,表示文中出现了多少个待查询的单词。"}},{"title":"样例","value":{"format":"MD","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e1\n5\nshe\nhe\nsay\nshr\nher\nyasherhs\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e3\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"数据范围与提示","value":{"format":"MD","content":"对于全部数据,$1\\le n\\le 10^4,1\\le m\\le 10^6$。"}}]}