I created a plugin in QGIS 2 AND I used the qgis:rasterlayerstatistics
, I could get the 'COUNT' information : pixels number, but when I migrate my plugin to version 3.4 I found out that this information (COUNT) is not available anymore .
is there any other way to have raster statistics about pixels number ?