changed the name of my function to wordPerLine. it makes much more sense.