Calculates the actual amount of superpixels on a given segmentation computed and stored in object
num = obj.getNumberOfSuperpixels()