How can I count the times a property is used?

How can I create a plugin to count how many times a color, font-size, font-weight etc is used?

You need to loop through the nodes and count what you need.