Write a code to count the number of lines in a text that contain a given word.
Input is formed by a word in the first line, followed by a text in subsequent input lines; these lines are formed by space-separated words.
The number of lines in the text that have as one of their words.
Author: Jorge Castro
Generation: 2026-01-25T17:43:07.599Z
© Jutge.org, 2006–2026.
https://jutge.org