Write a code to count the number of lines in a text that contain a given word.
Input
Input is formed by a word w in the first line, followed by a text in subsequent input lines; these lines are formed by space-separated words.
Output
The number of lines in the text that have w as one of their words.
Input
table chair carpet glass table window window lamp carpet bottle armchair table table table
Output
2