Adopted count to better nodata handling