Add size param to API for TermsStats
Merge changes.txt of pull request #400