Input: Sentence: 'A medium sized brown and white dog is outside by itself'. Count the number of nouns in this sentence.
Output: 1