How to know unique values in a <MapDataset shapes: (96, 128, 1), types: tf.uint8>

i was solving image segmentation using unet assignment in deeplearning.ai specialization Convolution neural network course.In the assignment it is mentioned that the number of output classes in the segmented image is at max 23 how to get this value i cannot understand.Please help