fix count js