Input: Sentence: 'A dog is sitting on a couch with it's head turned to look out of the window'. Count the number of nouns in this sentence.
Output: 4