change task depth count to use countbyvalue