Add a model-level count optimisation for if you need the data afterwards.