fixed grammar counting