Input: Sentence: 'These ladies have forks and are opening packs of doughnuts'. Count the number of nouns in this sentence.
Output: 4