Input: Sentence: 'A cat standing on a table in front of the fireplace'. Count the number of nouns in this sentence.
Output: 4