The number of words is calculated