restrict word count to fixed global number