The query implemented in this diff is fast on our dataset (P569).
But, that currently fails on db storage tests.
Because it relies on the `object_counts` table, afaict, is not part of the storage per say and it seems to not update itself.
What would be a correct way to test this?
Note:
Related to T2120