code: def _get_number_of_slices(self, slice_type):
          
          if slice_type == SliceType.AXIAL:
              return self.dimensions[self.axial_orientation.normal_component]
          elif slice_type == SliceType.SAGITTAL:
              return self.dimensions[self.sagittal_orientation.normal_component]
          elif slice_type == SliceType.CORONAL:
              return self.dimensions[self.coronal_orientation.normal_component]
docs: Get the number of slices in a certain direction