add two new functions to PartType: get_num_elements and get_el_range