Remove course number length validation.

Add total_pages to JSON output.