Changed PageCount to Ceiling of recordCount / pageSize