Fixes count call being called globally instead of on array.