replaced count with strlen (I'm dumb)
made number of words to show configurable