Input: Sentence: 'A bathroom with a toilet and a counter next to a door'. Count the number of nouns in this sentence.
Output: 4