finished array count and slice