Input: Sentence: 'A semi-truck without a trailer attached to it'. Count the number of nouns in this sentence.
Output: 3