Input: Sentence: 'The family of elephants are walking in a straight line together'. Count the number of nouns in this sentence.
Output: 3