Adding back space count seems to work

But it does not get removed from the array