Count leaves using an accumulator