created method get_num_cell