Input: Sentence: 'A small girl jumps on her twin size bed'. Count the number of nouns in this sentence.
Output: 3