Count icons in the gradebook
You only need to select which icons to count and whether you'd like to show its quantity or its value, if any.
It can either count all columns, only columns in folder or columns in folder + subfolders

Add an icon counter

This is our sample data. We will add an icon counter to count all the flags in each row.

The configuration of our icon counter

And the result.
