Input: Sentence: 'A motorcycle laying down on its side in the mud'. Count the number of nouns in this sentence.
Output: 3