counting numbers of words