update total count locally