added parameter for number of sentences to generate