用累积定义count-leave