1、普通的方法
int totalPageCount = (totalCount % pageSize == 0) ? (totalCount / pageSize) : (totalCount / pageSize + 1);
2、简易方法
int totalPageCount = (totalCount + pageSize - 1) / pageSize;