Input: Sentence: 'A giraffe with many spots standing in a field'. Count the number of nouns in this sentence.
Output: 3