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 horse looking over a fence with the sun just over the top of the building behind it'. How many words end with the letter 'p' in the sentence.