I am trying to filter/subset/extract a specific value from the output returned by frequencyHistogram().
I am not sure how to do this, and not sure what is the class of that output (help file says list), or whether I should convert this to another class, like dictionary or array?
Say I wanted to know the cell count associated to cell value 10001, how can I do this?
// Take raster and polygon
var image = ee.Image('LANDSAT/LC8_L1T/LC80440342014077LGN00').select('B[2-5]');
var region = ee.Geometry.Rectangle(-122.45, 37.74, -122.4, 37.8);
// run histogram on raster, on region defined by polygon
var tryit = image.reduceRegion(ee.Reducer.frequencyHistogram(), region, 30).get("B2");
print(tryit, "tryit")
//how can I extract the cell count associated to cell value, say 10001?