Input: Sentence: 'A group of navy men cutting a massive cake on top of a white table'. Count the number of nouns in this sentence.
Output: 6