title: How to get a count of a variable in an array in Angular 8
body: <p>Here is my sample data </p>
  
  <pre><code>    this.factorList = [ 
      {      
      factorEnrollment: "OPTIONAL",
      factorProvider: "OKTA",
      factorStatus: "NOT_SETUP",
      factorType: "call"
    },
      {  
      factorEnrollment: "OPTIONAL",
      factorProvider: "OKTA",
      factorStatus: "NOT_SETUP",
      factorType: "sms"
    },
    {  
      factorEnrollment: "REQUIRED",
      factorProvider: "OKTA",
      factorStatus: "NOT_SETUP",
      factorType: "sms"
    }
      ];
  </code></pre>
  
  <p>How to get a count of how many FactorEnrollment: "REQUIRED" is in the array above in angular 8? </p>