Input: Sentence: 'A man is smiling and sitting with his arms crossed'. Count the number of nouns in this sentence.
Output: 2