Sir at 22:05 why u assign count length to an array

sir at 22:05 why u assign count length to an array

becoz we haven’t initialized the indices array
coz we dont know the size
so we r counting first how many elements are there
and returning the array after initializing that with required size