I am trying to count the number of times each category of a raster layer appears in a buffer square. I have attached a picture to help explain.
In the picture example I would want the 'red group' to output 2 for that buffer, grey to output 2, green 2, orange 4 and brown either 4 or 5. I need to do this for a few hundred sites so a technique where I can do all buffers at the same time would be good, even if this means only one raster group can be assigned a number at a time e.g. only output for 'red group' in each buffer. I'm not sure if this is possible but I hope so. Would I need to convert the raster layer first - I'm happy to do this is needed?
Not sure if it matters or not but none of my buffers overlap and some raster groups could be in more than one buffer as seen below.
I'm using ArcGIS - ArcMap 10.1. I should have all the licences as it's at University