Docs.
Merge pull request #3153 from bar/patch-2

Docs.
Merge pull request #3157 from bar/3.0-order-in-count

Avoid ordering when counting.
The offset value is not calculated correctly.

Offset is calculated using Query::page() and it relies on limit being
already calculated.

https://github.com/cakephp/cakephp/issues/3158