Fixing Query::count() to be aware of formatters