Input: Sentence: 'There is a cow under a tree branch looking up'. Count the number of nouns in this sentence.
Output: 3