Input: Sentence: 'a short wooden staircase with a metal railing'. Count the number of nouns in this sentence.
Output: 3