fix count result after wherecallback