Review this JavaScript that returns the number of pages needed to show count items at perPage per page.
count
perPage