Static method for counting components

Get no data value from raster