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