counts how many words are in each section