adding limit for generation by word count