Prevent division by zero when number of words is 0.