You cannot count by colours created by Conditional Formatting, you have to count the actual conditions that trigger the format