Input: Sentence: 'Two bears face forward, one standing on two legs while the other walks on four'. Count the number of nouns in this sentence.
Output: 2