Arrays are objects so when you create an array honding N objects you actually create N + 1 objects (the xtra one being the array itself).
If you know that X objects are created and the question asks how many objects are created
you should answer X even if you know that Y of them have now become eligible for garbage collection.
This is because
1.) The question asked for how many were created not how many are left.
2.) You have no guarantee of when garbage collection actually happened.