Search engines need to calculate the relevance of keywords in Articles , Please write a program to count a word ( Case insensitive ) Number of times in the article .
Multiple sets of test data , Two lines in each group .
first line , A word .( Word length not more than 10)
Second line , Some sentences , Represent an article .( Article length not more than 100000 Characters )
Enter only letters , Spaces and punctuation .

Output one line for each group of test data , Indicates the minimum number of times a word appears in an article .
Sample Input
HelloDavid:hello,lily. Lily:oh,david!hello,how are you?
Sample Output


import java.util.Arrays;import java.util.LinkedHashMap;import
java.util.Scanner; public class Main {    public static void main(String[]
args) {        Scanner cin = new Scanner(;        String str =
cin.nextLine();        str = str.toUpperCase();        String[] tot =
cin.nextLine().toUpperCase().split("\\W+");        int sum = 0;        for (int
i = 0; i < tot.length; i++) {            if (tot[i].equals(str)) {
                sum++;            }        }        System.out.println(sum); 
        cin.close();    }}

©2019-2020 Toolsou All rights reserved,
java Four functional interfaces ( a key , simple )os Simple use of module Browser kernel ( understand ) Some East 14 Pay change 16 salary , Sincerity or routine ?HashMap Explain in detail It's unexpected Python Cherry tree (turtle The gorgeous style of Library )html Writing about cherry trees , Writing about cherry trees