#NEWLINE# def __init__( self , total , elems_per_page ) : #NEWLINE# #INDENT# self . total = total #NEWLINE# self . elems_per_page = elems_per_page #NEWLINE# self . num_pages = ( total / elems_per_page ) #NEWLINE# if ( total % self ) : #NEWLINE# #INDENT# self . num_pages += 1