added term counter