count words from collections