In this task, you need to count the number of words in a sentence that end with the given letter. Answer with numbers and not words.

Sentence: 'a wooden fence sitting in a field with a cow'. How many words end with the letter 'a' in the sentence.
3

Sentence: 'this bathroom has a washing machine in it'. How many words end with the letter 'a' in the sentence.
1

Sentence: 'a person on a beach holding a surf board'. How many words end with the letter 'g' in the sentence.

1