Input: Sentence: 'Guys behind the fence practice with their bats as another hits an incoming ball during the game'. Count the number of nouns in this sentence.
Output: 6