If I have a lead time time metric that has a following color legend

1. Not Compliant:<5days

2.Compliant: >= 5days

 

Want to know  how many occurrences there are for NOT COMPLIANT VS COMPLIANT.

Is there a  function  for doing that ?.