[Bugfix] fixed a bug with Builder::getPaginationCount() when using orderByRaw.

will fix: https://github.com/laravel/framework/issues/2765