Changed line 7 and removed count. php can automatically allocate next index