added counters for assignments and comparisons