Fixed issue with history counting for UI paging when viewing course history with more items than the page.