Input: Sentence: 'A woman and her baby sitting near a gate watching the giraffes'. Count the number of nouns in this sentence.
Output: 4