I wish to loop through this shapefile, and for each "COUNTY_NM"
, count the number of values corresponding to each "layer"
value.
I want to output a CSV or equivalent which would be show the number of values per each county per year e.g. "Okanogan County, 2000:1, 2002:16, 2003:4" etc.