Input: Sentence: 'a woman sits at a table eating a piece of cake'. Count the number of nouns in this sentence.
Output: 4