Added int cell_num_dim()