Output format plugin

This is early work. I just wanted you to have a peek to the direction this is turning into.
count() will return 0 or the number, so this can be 

```php
return $this
  ->getQueryCount()
  ->execute();
```

In that case maybe we can deprecate getQueryCount() and move logic here.