Input: Sentence: 'A man is lifting the seat to a toilet'. Count the number of nouns in this sentence.
Output: 3