Input: Sentence: 'A man taking a picture of a bus's side view mirror'. Count the number of nouns in this sentence.
Output: 6