Input: Sentence: 'A police officer sits on a motorcycle in a parking lot'. Count the number of nouns in this sentence.
Output: 5