Input: Sentence: 'A dog that is sitting at a door and a person holding a can in their hand'. Count the number of nouns in this sentence.
Output: 5