Input: Sentence: 'Two small beds are sitting side by side'. Count the number of nouns in this sentence.
Output: 3