Input: Sentence: 'A home with no furniture and a dog in it'. Count the number of nouns in this sentence.
Output: 3