Set count only if xhr exists.