Add `count()` method to `QueryChain`