proper countAll implementation