In this task, you need to count the number of words in a sentence that contain the given letter

Example input: Sentence: 'two gray birds standing in a green field'. How many words contain the letter 'a' in the sentence.
Example output: 3
Example explanation: The words 'gray', 'standing', and 'a' contain the letter 'a'. So, the answer is 3.
Q: Sentence: 'a pole that has several signs attached to it'. How many words contain the letter 'w' in the sentence.
A:

Show your work and conclude with the exact phrasing "Therefore, the final answer is [answer]." where [answer] is just the final number or expression that solves the problem.
user
0