Input: Sentence: 'A bedroon with two beds under the roof and wooden floors'. Count the number of nouns in this sentence.
Output: 4