Do not you think that method 'getCountSQL' can be called here? I see it as same behavior...