Queue Implementation Issue

You are reading in the slice of data, and then insert the number of items at the end.