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,
Thread.getContextClassLoader And Thread.getClassLoader() difference ( Essence )2020 year 6 month 26 day C# Class library File read and write operation help class Centos7 lower mysql8.0 To install and change the initial password ; Theory and formula derivation of univariate linear regression and multiple linear regression Vue Get the text and option value of the drop-down box ( Essence )2020 year 6 month 29 day C# Class library Interface signature verification ( Essence )2020 year 6 month 26 day C# Class library model PageInputelement-ui+vue-treeselect Verification of drop down box 11-5 Output string at specified position The shortest path of maze BFS algorithm (python realization )