prohibit division by zero for pagingCount