Pass model's objectCount directly in onRender instead of storing locally