Hi everyone,
I'm new to data expressions and I'm having some trouble writing an expression to create a table in an AGOL dashboard. I need to write an expression that will count the occurrence of "Non_compliant" in a few fields of my FeatureLayer. See screenshot of

I'm trying to produce a table like below in the dashboard:

Any help or advice would be greatly appreciated?