Fixed counting bug regarding 3-term operator.