Input: Sentence: 'A dog standing wearing socks with sandals on its back feet'. Count the number of nouns in this sentence.
Output: 4