Input: Sentence: 'Cat sitting on edge of bathroom sink cabinet in residence'. Count the number of nouns in this sentence.
Output: 6