Changed slices to count '1'