fix count increment