add ability to specify number of words needed on command line