Input: Sentence: 'A dog and a person walking in the sand'. Count the number of nouns in this sentence.
Output: 3