basic script to subsample training data until have fixed number of words.