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: 'water with waves and there is a portion of the dock that has a weight attached to it and a bird is sitting on the dock'. How many words end with the letter 't' in the sentence.